Class WorkspaceEnforcedPolicyAssociation
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<WorkspaceEnforcedPolicyAssociation.Builder,WorkspaceEnforcedPolicyAssociation>
Describes the WorkSpace-enforced policy associated with a WorkSpace, and whether the WorkSpace has applied it.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final EnforcedPolicyErrorCodeThe reason that the policy wasn't applied.final StringThe reason that the policy wasn't applied.final StringA description of why the policy wasn't applied to the WorkSpace.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()final StringpolicyId()The identifier of the policy.static Class<? extends WorkspaceEnforcedPolicyAssociation.Builder> final EnforcedPolicySyncStatusWhether the policy is applied:final StringWhether the policy is applied:Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
policyId
-
syncStatus
Whether the policy is applied:
-
PENDING_UPDATE– The WorkSpace hasn't confirmed the policy yet. -
IN_SYNC– The policy is applied. -
FAILED– The policy isn't applied.
This field isn't returned if the service can't determine the status. Don't treat a missing value as
IN_SYNC.If the service returns an enum value that is not available in the current SDK version,
syncStatuswill returnEnforcedPolicySyncStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromsyncStatusAsString().- Returns:
- Whether the policy is applied:
-
PENDING_UPDATE– The WorkSpace hasn't confirmed the policy yet. -
IN_SYNC– The policy is applied. -
FAILED– The policy isn't applied.
This field isn't returned if the service can't determine the status. Don't treat a missing value as
IN_SYNC. -
- See Also:
-
-
syncStatusAsString
Whether the policy is applied:
-
PENDING_UPDATE– The WorkSpace hasn't confirmed the policy yet. -
IN_SYNC– The policy is applied. -
FAILED– The policy isn't applied.
This field isn't returned if the service can't determine the status. Don't treat a missing value as
IN_SYNC.If the service returns an enum value that is not available in the current SDK version,
syncStatuswill returnEnforcedPolicySyncStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromsyncStatusAsString().- Returns:
- Whether the policy is applied:
-
PENDING_UPDATE– The WorkSpace hasn't confirmed the policy yet. -
IN_SYNC– The policy is applied. -
FAILED– The policy isn't applied.
This field isn't returned if the service can't determine the status. Don't treat a missing value as
IN_SYNC. -
- See Also:
-
-
errorCode
The reason that the policy wasn't applied. This field is returned only when
SyncStatusisFAILEDbecause of this policy. IfSyncStatusisFAILEDand this field isn't returned, the failure has another cause.If the service returns an enum value that is not available in the current SDK version,
errorCodewill returnEnforcedPolicyErrorCode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromerrorCodeAsString().- Returns:
- The reason that the policy wasn't applied. This field is returned only when
SyncStatusisFAILEDbecause of this policy. IfSyncStatusisFAILEDand this field isn't returned, the failure has another cause. - See Also:
-
errorCodeAsString
The reason that the policy wasn't applied. This field is returned only when
SyncStatusisFAILEDbecause of this policy. IfSyncStatusisFAILEDand this field isn't returned, the failure has another cause.If the service returns an enum value that is not available in the current SDK version,
errorCodewill returnEnforcedPolicyErrorCode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromerrorCodeAsString().- Returns:
- The reason that the policy wasn't applied. This field is returned only when
SyncStatusisFAILEDbecause of this policy. IfSyncStatusisFAILEDand this field isn't returned, the failure has another cause. - See Also:
-
errorMessage
A description of why the policy wasn't applied to the WorkSpace. This field is usually returned when
ErrorCodeis returned.- Returns:
- A description of why the policy wasn't applied to the WorkSpace. This field is usually returned when
ErrorCodeis returned.
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<WorkspaceEnforcedPolicyAssociation.Builder,WorkspaceEnforcedPolicyAssociation> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
public static Class<? extends WorkspaceEnforcedPolicyAssociation.Builder> serializableBuilderClass() -
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-