Class DescribeResourceResponse
- java.lang.Object
-
- software.amazon.awssdk.core.SdkResponse
-
- software.amazon.awssdk.awscore.AwsResponse
-
- software.amazon.awssdk.services.workmail.model.WorkMailResponse
-
- software.amazon.awssdk.services.workmail.model.DescribeResourceResponse
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<DescribeResourceResponse.Builder,DescribeResourceResponse>
@Generated("software.amazon.awssdk:codegen") public final class DescribeResourceResponse extends WorkMailResponse implements ToCopyableBuilder<DescribeResourceResponse.Builder,DescribeResourceResponse>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceDescribeResourceResponse.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BookingOptionsbookingOptions()The booking options for the described resource.static DescribeResourceResponse.Builderbuilder()Stringdescription()Description of the resource.InstantdisabledDate()The date and time when a resource was disabled from WorkMail, in UNIX epoch time format.Stringemail()The email of the described resource.InstantenabledDate()The date and time when a resource was enabled for WorkMail, in UNIX epoch time format.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()BooleanhiddenFromGlobalAddressList()If enabled, the resource is hidden from the global address list.Stringname()The name of the described resource.StringresourceId()The identifier of the described resource.List<SdkField<?>>sdkFields()static Class<? extends DescribeResourceResponse.Builder>serializableBuilderClass()EntityStatestate()The state of the resource: enabled (registered to WorkMail), disabled (deregistered or never registered to WorkMail), or deleted.StringstateAsString()The state of the resource: enabled (registered to WorkMail), disabled (deregistered or never registered to WorkMail), or deleted.DescribeResourceResponse.BuildertoBuilder()StringtoString()Returns a string representation of this object.ResourceTypetype()The type of the described resource.StringtypeAsString()The type of the described resource.-
Methods inherited from class software.amazon.awssdk.services.workmail.model.WorkMailResponse
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
-
resourceId
public final String resourceId()
The identifier of the described resource.
- Returns:
- The identifier of the described resource.
-
email
public final String email()
The email of the described resource.
- Returns:
- The email of the described resource.
-
name
public final String name()
The name of the described resource.
- Returns:
- The name of the described resource.
-
type
public final ResourceType type()
The type of the described resource.
If the service returns an enum value that is not available in the current SDK version,
typewill returnResourceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtypeAsString().- Returns:
- The type of the described resource.
- See Also:
ResourceType
-
typeAsString
public final String typeAsString()
The type of the described resource.
If the service returns an enum value that is not available in the current SDK version,
typewill returnResourceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtypeAsString().- Returns:
- The type of the described resource.
- See Also:
ResourceType
-
bookingOptions
public final BookingOptions bookingOptions()
The booking options for the described resource.
- Returns:
- The booking options for the described resource.
-
state
public final EntityState state()
The state of the resource: enabled (registered to WorkMail), disabled (deregistered or never registered to WorkMail), or deleted.
If the service returns an enum value that is not available in the current SDK version,
statewill returnEntityState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstateAsString().- Returns:
- The state of the resource: enabled (registered to WorkMail), disabled (deregistered or never registered to WorkMail), or deleted.
- See Also:
EntityState
-
stateAsString
public final String stateAsString()
The state of the resource: enabled (registered to WorkMail), disabled (deregistered or never registered to WorkMail), or deleted.
If the service returns an enum value that is not available in the current SDK version,
statewill returnEntityState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstateAsString().- Returns:
- The state of the resource: enabled (registered to WorkMail), disabled (deregistered or never registered to WorkMail), or deleted.
- See Also:
EntityState
-
enabledDate
public final Instant enabledDate()
The date and time when a resource was enabled for WorkMail, in UNIX epoch time format.
- Returns:
- The date and time when a resource was enabled for WorkMail, in UNIX epoch time format.
-
disabledDate
public final Instant disabledDate()
The date and time when a resource was disabled from WorkMail, in UNIX epoch time format.
- Returns:
- The date and time when a resource was disabled from WorkMail, in UNIX epoch time format.
-
description
public final String description()
Description of the resource.
- Returns:
- Description of the resource.
-
hiddenFromGlobalAddressList
public final Boolean hiddenFromGlobalAddressList()
If enabled, the resource is hidden from the global address list.
- Returns:
- If enabled, the resource is hidden from the global address list.
-
toBuilder
public DescribeResourceResponse.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<DescribeResourceResponse.Builder,DescribeResourceResponse>- Specified by:
toBuilderin classAwsResponse
-
builder
public static DescribeResourceResponse.Builder builder()
-
serializableBuilderClass
public static Class<? extends DescribeResourceResponse.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
-
-