@Generated(value="software.amazon.awssdk:codegen") public final class Resource extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Resource.Builder,Resource>
The overview for a resource containing relevant data regarding it.
| Modifier and Type | Class and Description | 
|---|---|
static interface  | 
Resource.Builder  | 
| Modifier and Type | Method and Description | 
|---|---|
static Resource.Builder | 
builder()  | 
Instant | 
disabledDate()
 The date indicating when the resource was disabled from Amazon WorkMail use. 
 | 
String | 
email()
 The email of the resource. 
 | 
Instant | 
enabledDate()
 The date indicating when the resource was enabled for Amazon WorkMail use. 
 | 
boolean | 
equals(Object obj)  | 
<T> Optional<T> | 
getValueForField(String fieldName,
                Class<T> clazz)  | 
int | 
hashCode()  | 
String | 
id()
 The identifier of the resource. 
 | 
String | 
name()
 The name of the resource. 
 | 
List<SdkField<?>> | 
sdkFields()  | 
static Class<? extends Resource.Builder> | 
serializableBuilderClass()  | 
EntityState | 
state()
 The state of the resource, which can be ENABLED, DISABLED, or DELETED. 
 | 
String | 
stateAsString()
 The state of the resource, which can be ENABLED, DISABLED, or DELETED. 
 | 
Resource.Builder | 
toBuilder()
Take this object and create a builder that contains all of the current property values of this object. 
 | 
String | 
toString()  | 
ResourceType | 
type()
 The type of the resource: equipment or room. 
 | 
String | 
typeAsString()
 The type of the resource: equipment or room. 
 | 
copypublic String id()
The identifier of the resource.
public String email()
The email of the resource.
public String name()
The name of the resource.
public ResourceType type()
The type of the resource: equipment or room.
 If the service returns an enum value that is not available in the current SDK version, type will return
 ResourceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
 typeAsString().
 
ResourceTypepublic String typeAsString()
The type of the resource: equipment or room.
 If the service returns an enum value that is not available in the current SDK version, type will return
 ResourceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
 typeAsString().
 
ResourceTypepublic EntityState state()
The state of the resource, which can be ENABLED, DISABLED, or DELETED.
 If the service returns an enum value that is not available in the current SDK version, state will return
 EntityState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
 stateAsString().
 
EntityStatepublic String stateAsString()
The state of the resource, which can be ENABLED, DISABLED, or DELETED.
 If the service returns an enum value that is not available in the current SDK version, state will return
 EntityState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
 stateAsString().
 
EntityStatepublic Instant enabledDate()
The date indicating when the resource was enabled for Amazon WorkMail use.
public Instant disabledDate()
The date indicating when the resource was disabled from Amazon WorkMail use.
public Resource.Builder toBuilder()
ToCopyableBuildertoBuilder in interface ToCopyableBuilder<Resource.Builder,Resource>public static Resource.Builder builder()
public static Class<? extends Resource.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.