Class GetMemberResponse
- java.lang.Object
-
- software.amazon.awssdk.core.SdkResponse
-
- software.amazon.awssdk.awscore.AwsResponse
-
- software.amazon.awssdk.services.macie2.model.Macie2Response
-
- software.amazon.awssdk.services.macie2.model.GetMemberResponse
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<GetMemberResponse.Builder,GetMemberResponse>
@Generated("software.amazon.awssdk:codegen") public final class GetMemberResponse extends Macie2Response implements ToCopyableBuilder<GetMemberResponse.Builder,GetMemberResponse>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceGetMemberResponse.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringaccountId()The Amazon Web Services account ID for the account.StringadministratorAccountId()The Amazon Web Services account ID for the administrator account.Stringarn()The Amazon Resource Name (ARN) of the account.static GetMemberResponse.Builderbuilder()Stringemail()The email address for the account.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.InstantinvitedAt()The date and time, in UTC and extended ISO 8601 format, when an Amazon Macie membership invitation was last sent to the account.StringmasterAccountId()(Deprecated) The Amazon Web Services account ID for the administrator account.RelationshipStatusrelationshipStatus()The current status of the relationship between the account and the administrator account.StringrelationshipStatusAsString()The current status of the relationship between the account and the administrator account.List<SdkField<?>>sdkFields()static Class<? extends GetMemberResponse.Builder>serializableBuilderClass()Map<String,String>tags()A map of key-value pairs that specifies which tags (keys and values) are associated with the account in Amazon Macie.GetMemberResponse.BuildertoBuilder()StringtoString()Returns a string representation of this object.InstantupdatedAt()The date and time, in UTC and extended ISO 8601 format, of the most recent change to the status of the relationship between the account and the administrator account.-
Methods inherited from class software.amazon.awssdk.services.macie2.model.Macie2Response
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
-
accountId
public final String accountId()
The Amazon Web Services account ID for the account.
- Returns:
- The Amazon Web Services account ID for the account.
-
administratorAccountId
public final String administratorAccountId()
The Amazon Web Services account ID for the administrator account.
- Returns:
- The Amazon Web Services account ID for the administrator account.
-
arn
public final String arn()
The Amazon Resource Name (ARN) of the account.
- Returns:
- The Amazon Resource Name (ARN) of the account.
-
email
public final String email()
The email address for the account. This value is null if the account is associated with the administrator account through Organizations.
- Returns:
- The email address for the account. This value is null if the account is associated with the administrator account through Organizations.
-
invitedAt
public final Instant invitedAt()
The date and time, in UTC and extended ISO 8601 format, when an Amazon Macie membership invitation was last sent to the account. This value is null if a Macie membership invitation hasn't been sent to the account.
- Returns:
- The date and time, in UTC and extended ISO 8601 format, when an Amazon Macie membership invitation was last sent to the account. This value is null if a Macie membership invitation hasn't been sent to the account.
-
masterAccountId
public final String masterAccountId()
(Deprecated) The Amazon Web Services account ID for the administrator account. This property has been replaced by the administratorAccountId property and is retained only for backward compatibility.
- Returns:
- (Deprecated) The Amazon Web Services account ID for the administrator account. This property has been replaced by the administratorAccountId property and is retained only for backward compatibility.
-
relationshipStatus
public final RelationshipStatus relationshipStatus()
The current status of the relationship between the account and the administrator account.
If the service returns an enum value that is not available in the current SDK version,
relationshipStatuswill returnRelationshipStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromrelationshipStatusAsString().- Returns:
- The current status of the relationship between the account and the administrator account.
- See Also:
RelationshipStatus
-
relationshipStatusAsString
public final String relationshipStatusAsString()
The current status of the relationship between the account and the administrator account.
If the service returns an enum value that is not available in the current SDK version,
relationshipStatuswill returnRelationshipStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromrelationshipStatusAsString().- Returns:
- The current status of the relationship between the account and the administrator account.
- See Also:
RelationshipStatus
-
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 Map<String,String> tags()
A map of key-value pairs that specifies which tags (keys and values) are associated with the account in Amazon Macie.
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:
- A map of key-value pairs that specifies which tags (keys and values) are associated with the account in Amazon Macie.
-
updatedAt
public final Instant updatedAt()
The date and time, in UTC and extended ISO 8601 format, of the most recent change to the status of the relationship between the account and the administrator account.
- Returns:
- The date and time, in UTC and extended ISO 8601 format, of the most recent change to the status of the relationship between the account and the administrator account.
-
toBuilder
public GetMemberResponse.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<GetMemberResponse.Builder,GetMemberResponse>- Specified by:
toBuilderin classAwsResponse
-
builder
public static GetMemberResponse.Builder builder()
-
serializableBuilderClass
public static Class<? extends GetMemberResponse.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
-
-