Class UpdateWorkerScheduleResponse
- java.lang.Object
-
- software.amazon.awssdk.core.SdkResponse
-
- software.amazon.awssdk.awscore.AwsResponse
-
- software.amazon.awssdk.services.deadline.model.DeadlineResponse
-
- software.amazon.awssdk.services.deadline.model.UpdateWorkerScheduleResponse
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<UpdateWorkerScheduleResponse.Builder,UpdateWorkerScheduleResponse>
@Generated("software.amazon.awssdk:codegen") public final class UpdateWorkerScheduleResponse extends DeadlineResponse implements ToCopyableBuilder<UpdateWorkerScheduleResponse.Builder,UpdateWorkerScheduleResponse>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceUpdateWorkerScheduleResponse.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,AssignedSession>assignedSessions()The assigned sessions to update.static UpdateWorkerScheduleResponse.Builderbuilder()Map<String,List<String>>cancelSessionActions()The session actions associated with the worker schedule to cancel.DesiredWorkerStatusdesiredWorkerStatus()The status to update the worker to.StringdesiredWorkerStatusAsString()The status to update the worker to.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)booleanhasAssignedSessions()For responses, this returns true if the service returned a value for the AssignedSessions property.booleanhasCancelSessionActions()For responses, this returns true if the service returned a value for the CancelSessionActions property.inthashCode()List<SdkField<?>>sdkFields()static Class<? extends UpdateWorkerScheduleResponse.Builder>serializableBuilderClass()UpdateWorkerScheduleResponse.BuildertoBuilder()StringtoString()Returns a string representation of this object.IntegerupdateIntervalSeconds()Updates the time interval (in seconds) for the schedule.-
Methods inherited from class software.amazon.awssdk.services.deadline.model.DeadlineResponse
responseMetadata
-
Methods inherited from class software.amazon.awssdk.core.SdkResponse
sdkHttpResponse
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
hasAssignedSessions
public final boolean hasAssignedSessions()
For responses, this returns true if the service returned a value for the AssignedSessions property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()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.
-
assignedSessions
public final Map<String,AssignedSession> assignedSessions()
The assigned sessions to update.
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
hasAssignedSessions()method.- Returns:
- The assigned sessions to update.
-
hasCancelSessionActions
public final boolean hasCancelSessionActions()
For responses, this returns true if the service returned a value for the CancelSessionActions property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()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.
-
cancelSessionActions
public final Map<String,List<String>> cancelSessionActions()
The session actions associated with the worker schedule to cancel.
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
hasCancelSessionActions()method.- Returns:
- The session actions associated with the worker schedule to cancel.
-
desiredWorkerStatus
public final DesiredWorkerStatus desiredWorkerStatus()
The status to update the worker to.
If the service returns an enum value that is not available in the current SDK version,
desiredWorkerStatuswill returnDesiredWorkerStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromdesiredWorkerStatusAsString().- Returns:
- The status to update the worker to.
- See Also:
DesiredWorkerStatus
-
desiredWorkerStatusAsString
public final String desiredWorkerStatusAsString()
The status to update the worker to.
If the service returns an enum value that is not available in the current SDK version,
desiredWorkerStatuswill returnDesiredWorkerStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromdesiredWorkerStatusAsString().- Returns:
- The status to update the worker to.
- See Also:
DesiredWorkerStatus
-
updateIntervalSeconds
public final Integer updateIntervalSeconds()
Updates the time interval (in seconds) for the schedule.
- Returns:
- Updates the time interval (in seconds) for the schedule.
-
toBuilder
public UpdateWorkerScheduleResponse.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<UpdateWorkerScheduleResponse.Builder,UpdateWorkerScheduleResponse>- Specified by:
toBuilderin classAwsResponse
-
builder
public static UpdateWorkerScheduleResponse.Builder builder()
-
serializableBuilderClass
public static Class<? extends UpdateWorkerScheduleResponse.Builder> serializableBuilderClass()
-
hashCode
public final int hashCode()
- Overrides:
hashCodein classAwsResponse
-
equals
public final boolean equals(Object obj)
- Overrides:
equalsin classAwsResponse
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
getValueForField
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
- Overrides:
getValueForFieldin classSdkResponse
-
-