@Generated(value="software.amazon.awssdk:codegen") public final class Action extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Action.Builder,Action>
A budget action resource.
| Modifier and Type | Class and Description |
|---|---|
static interface |
Action.Builder |
| Modifier and Type | Method and Description |
|---|---|
String |
actionId()
A system-generated universally unique identifier (UUID) for the action.
|
ActionThreshold |
actionThreshold()
The trigger threshold of the action.
|
ActionType |
actionType()
The type of action.
|
String |
actionTypeAsString()
The type of action.
|
ApprovalModel |
approvalModel()
This specifies if the action needs manual or automatic approval.
|
String |
approvalModelAsString()
This specifies if the action needs manual or automatic approval.
|
String |
budgetName()
Returns the value of the BudgetName property for this object.
|
static Action.Builder |
builder() |
Definition |
definition()
Where you specify all of the type-specific parameters.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
String |
executionRoleArn()
The role passed for action execution and reversion.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasSubscribers()
For responses, this returns true if the service returned a value for the Subscribers property.
|
NotificationType |
notificationType()
Returns the value of the NotificationType property for this object.
|
String |
notificationTypeAsString()
Returns the value of the NotificationType property for this object.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends Action.Builder> |
serializableBuilderClass() |
ActionStatus |
status()
The status of the action.
|
String |
statusAsString()
The status of the action.
|
List<Subscriber> |
subscribers()
Returns the value of the Subscribers property for this object.
|
Action.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String actionId()
A system-generated universally unique identifier (UUID) for the action.
public final String budgetName()
public final NotificationType notificationType()
If the service returns an enum value that is not available in the current SDK version, notificationType
will return NotificationType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from notificationTypeAsString().
NotificationTypepublic final String notificationTypeAsString()
If the service returns an enum value that is not available in the current SDK version, notificationType
will return NotificationType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from notificationTypeAsString().
NotificationTypepublic final ActionType actionType()
The type of action. This defines the type of tasks that can be carried out by this action. This field also determines the format for definition.
If the service returns an enum value that is not available in the current SDK version, actionType will
return ActionType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
actionTypeAsString().
ActionTypepublic final String actionTypeAsString()
The type of action. This defines the type of tasks that can be carried out by this action. This field also determines the format for definition.
If the service returns an enum value that is not available in the current SDK version, actionType will
return ActionType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
actionTypeAsString().
ActionTypepublic final ActionThreshold actionThreshold()
The trigger threshold of the action.
public final Definition definition()
Where you specify all of the type-specific parameters.
public final String executionRoleArn()
The role passed for action execution and reversion. Roles and actions must be in the same account.
public final ApprovalModel approvalModel()
This specifies if the action needs manual or automatic approval.
If the service returns an enum value that is not available in the current SDK version, approvalModel
will return ApprovalModel.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
approvalModelAsString().
ApprovalModelpublic final String approvalModelAsString()
This specifies if the action needs manual or automatic approval.
If the service returns an enum value that is not available in the current SDK version, approvalModel
will return ApprovalModel.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
approvalModelAsString().
ApprovalModelpublic final ActionStatus status()
The status of the action.
If the service returns an enum value that is not available in the current SDK version, status will
return ActionStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
statusAsString().
ActionStatuspublic final String statusAsString()
The status of the action.
If the service returns an enum value that is not available in the current SDK version, status will
return ActionStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
statusAsString().
ActionStatuspublic final boolean hasSubscribers()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final List<Subscriber> subscribers()
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasSubscribers() method.
public Action.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<Action.Builder,Action>public static Action.Builder builder()
public static Class<? extends Action.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.