public final class GoogleAppsCardV1SwitchControl extends GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Google Chat API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
GoogleAppsCardV1SwitchControl() |
| Modifier and Type | Method and Description |
|---|---|
GoogleAppsCardV1SwitchControl |
clone() |
String |
getControlType()
The control type, either switch or checkbox.
|
String |
getName()
The name of the switch widget that's used in formInput.
|
GoogleAppsCardV1Action |
getOnChangeAction()
The action when the switch state is changed.
|
Boolean |
getSelected()
If the switch is selected.
|
String |
getValue()
The value is what is passed back in the callback.
|
GoogleAppsCardV1SwitchControl |
set(String fieldName,
Object value) |
GoogleAppsCardV1SwitchControl |
setControlType(String controlType)
The control type, either switch or checkbox.
|
GoogleAppsCardV1SwitchControl |
setName(String name)
The name of the switch widget that's used in formInput.
|
GoogleAppsCardV1SwitchControl |
setOnChangeAction(GoogleAppsCardV1Action onChangeAction)
The action when the switch state is changed.
|
GoogleAppsCardV1SwitchControl |
setSelected(Boolean selected)
If the switch is selected.
|
GoogleAppsCardV1SwitchControl |
setValue(String value)
The value is what is passed back in the callback.
|
getFactory, setFactory, toPrettyString, toStringentrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic String getControlType()
null for nonepublic GoogleAppsCardV1SwitchControl setControlType(String controlType)
controlType - controlType or null for nonepublic String getName()
null for nonepublic GoogleAppsCardV1SwitchControl setName(String name)
name - name or null for nonepublic GoogleAppsCardV1Action getOnChangeAction()
null for nonepublic GoogleAppsCardV1SwitchControl setOnChangeAction(GoogleAppsCardV1Action onChangeAction)
onChangeAction - onChangeAction or null for nonepublic Boolean getSelected()
null for nonepublic GoogleAppsCardV1SwitchControl setSelected(Boolean selected)
selected - selected or null for nonepublic String getValue()
null for nonepublic GoogleAppsCardV1SwitchControl setValue(String value)
value - value or null for nonepublic GoogleAppsCardV1SwitchControl set(String fieldName, Object value)
set in class GenericJsonpublic GoogleAppsCardV1SwitchControl clone()
clone in class GenericJsonCopyright © 2011–2021 Google. All rights reserved.