Class MacModificationTask
- java.lang.Object
-
- software.amazon.awssdk.services.ec2.model.MacModificationTask
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<MacModificationTask.Builder,MacModificationTask>
@Generated("software.amazon.awssdk:codegen") public final class MacModificationTask extends Object implements SdkPojo, Serializable, ToCopyableBuilder<MacModificationTask.Builder,MacModificationTask>
Information about a System Integrity Protection (SIP) modification task or volume ownership delegation task for an Amazon EC2 Mac instance.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceMacModificationTask.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MacModificationTask.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()booleanhasTags()For responses, this returns true if the service returned a value for the Tags property.StringinstanceId()The ID of the Amazon EC2 Mac instance.StringmacModificationTaskId()The ID of task.MacSystemIntegrityProtectionConfigurationmacSystemIntegrityProtectionConfig()[SIP modification tasks only] Information about the SIP configuration.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends MacModificationTask.Builder>serializableBuilderClass()InstantstartTime()The date and time the task was created, in the UTC timezone (YYYY-MM-DDThh:mm:ss.sssZ).List<Tag>tags()The tags assigned to the task.MacModificationTaskStatetaskState()The state of the task.StringtaskStateAsString()The state of the task.MacModificationTaskTypetaskType()The type of task.StringtaskTypeAsString()The type of task.MacModificationTask.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
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
-
instanceId
public final String instanceId()
The ID of the Amazon EC2 Mac instance.
- Returns:
- The ID of the Amazon EC2 Mac instance.
-
macModificationTaskId
public final String macModificationTaskId()
The ID of task.
- Returns:
- The ID of task.
-
macSystemIntegrityProtectionConfig
public final MacSystemIntegrityProtectionConfiguration macSystemIntegrityProtectionConfig()
[SIP modification tasks only] Information about the SIP configuration.
- Returns:
- [SIP modification tasks only] Information about the SIP configuration.
-
startTime
public final Instant startTime()
The date and time the task was created, in the UTC timezone (
YYYY-MM-DDThh:mm:ss.sssZ).- Returns:
- The date and time the task was created, in the UTC timezone (
YYYY-MM-DDThh:mm:ss.sssZ).
-
hasTags
public final boolean hasTags()
For responses, this returns true if the service returned a value for the Tags 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.
-
tags
public final List<Tag> tags()
The tags assigned to the task.
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
hasTags()method.- Returns:
- The tags assigned to the task.
-
taskState
public final MacModificationTaskState taskState()
The state of the task.
If the service returns an enum value that is not available in the current SDK version,
taskStatewill returnMacModificationTaskState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtaskStateAsString().- Returns:
- The state of the task.
- See Also:
MacModificationTaskState
-
taskStateAsString
public final String taskStateAsString()
The state of the task.
If the service returns an enum value that is not available in the current SDK version,
taskStatewill returnMacModificationTaskState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtaskStateAsString().- Returns:
- The state of the task.
- See Also:
MacModificationTaskState
-
taskType
public final MacModificationTaskType taskType()
The type of task.
If the service returns an enum value that is not available in the current SDK version,
taskTypewill returnMacModificationTaskType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtaskTypeAsString().- Returns:
- The type of task.
- See Also:
MacModificationTaskType
-
taskTypeAsString
public final String taskTypeAsString()
The type of task.
If the service returns an enum value that is not available in the current SDK version,
taskTypewill returnMacModificationTaskType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtaskTypeAsString().- Returns:
- The type of task.
- See Also:
MacModificationTaskType
-
toBuilder
public MacModificationTask.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<MacModificationTask.Builder,MacModificationTask>
-
builder
public static MacModificationTask.Builder builder()
-
serializableBuilderClass
public static Class<? extends MacModificationTask.Builder> serializableBuilderClass()
-
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.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-