com.amazonaws.services.detective.model.MemberDetail Maven / Gradle / Ivy
/*
* Copyright 2015-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
* and limitations under the License.
*/
package com.amazonaws.services.detective.model;
import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;
/**
*
* Details about a member account that was invited to contribute to a behavior graph.
*
*
* @see AWS API
* Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class MemberDetail implements Serializable, Cloneable, StructuredPojo {
/**
*
* The AWS account identifier for the member account.
*
*/
private String accountId;
/**
*
* The AWS account root user email address for the member account.
*
*/
private String emailAddress;
/**
*
* The ARN of the behavior graph that the member account was invited to.
*
*/
private String graphArn;
/**
*
* The AWS account identifier of the master account for the behavior graph.
*
*/
private String masterId;
/**
*
* The current membership status of the member account. The status can have one of the following values:
*
*
* -
*
* INVITED
- Indicates that the member was sent an invitation but has not yet responded.
*
*
* -
*
* VERIFICATION_IN_PROGRESS
- Indicates that Detective is verifying that the account identifier and
* email address provided for the member account match. If they do match, then Detective sends the invitation. If
* the email address and account identifier don't match, then the member cannot be added to the behavior graph.
*
*
* -
*
* VERIFICATION_FAILED
- Indicates that the account and email address provided for the member account
* do not match, and Detective did not send an invitation to the account.
*
*
* -
*
* ENABLED
- Indicates that the member account accepted the invitation to contribute to the behavior
* graph.
*
*
* -
*
* ACCEPTED_BUT_DISABLED
- Indicates that the member account accepted the invitation but is prevented
* from contributing data to the behavior graph. DisabledReason
provides the reason why the member
* account is not enabled.
*
*
*
*
* Member accounts that declined an invitation or that were removed from the behavior graph are not included.
*
*/
private String status;
/**
*
* For member accounts with a status of ACCEPTED_BUT_DISABLED
, the reason that the member account is
* not enabled.
*
*
* The reason can have one of the following values:
*
*
* -
*
* VOLUME_TOO_HIGH
- Indicates that adding the member account would cause the data volume for the
* behavior graph to be too high.
*
*
* -
*
* VOLUME_UNKNOWN
- Indicates that Detective is unable to verify the data volume for the member
* account. This is usually because the member account is not enrolled in Amazon GuardDuty.
*
*
*
*/
private String disabledReason;
/**
*
* The date and time that Detective sent the invitation to the member account. The value is in milliseconds since
* the epoch.
*
*/
private java.util.Date invitedTime;
/**
*
* The date and time that the member account was last updated. The value is in milliseconds since the epoch.
*
*/
private java.util.Date updatedTime;
/**
*
* The member account data volume as a percentage of the maximum allowed data volume. 0 indicates 0 percent, and 100
* indicates 100 percent.
*
*
* Note that this is not the percentage of the behavior graph data volume.
*
*
* For example, the data volume for the behavior graph is 80 GB per day. The maximum data volume is 160 GB per day.
* If the data volume for the member account is 40 GB per day, then PercentOfGraphUtilization
is 25. It
* represents 25% of the maximum allowed data volume.
*
*/
private Double percentOfGraphUtilization;
/**
*
* The date and time when the graph utilization percentage was last updated.
*
*/
private java.util.Date percentOfGraphUtilizationUpdatedTime;
/**
*
* The AWS account identifier for the member account.
*
*
* @param accountId
* The AWS account identifier for the member account.
*/
public void setAccountId(String accountId) {
this.accountId = accountId;
}
/**
*
* The AWS account identifier for the member account.
*
*
* @return The AWS account identifier for the member account.
*/
public String getAccountId() {
return this.accountId;
}
/**
*
* The AWS account identifier for the member account.
*
*
* @param accountId
* The AWS account identifier for the member account.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public MemberDetail withAccountId(String accountId) {
setAccountId(accountId);
return this;
}
/**
*
* The AWS account root user email address for the member account.
*
*
* @param emailAddress
* The AWS account root user email address for the member account.
*/
public void setEmailAddress(String emailAddress) {
this.emailAddress = emailAddress;
}
/**
*
* The AWS account root user email address for the member account.
*
*
* @return The AWS account root user email address for the member account.
*/
public String getEmailAddress() {
return this.emailAddress;
}
/**
*
* The AWS account root user email address for the member account.
*
*
* @param emailAddress
* The AWS account root user email address for the member account.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public MemberDetail withEmailAddress(String emailAddress) {
setEmailAddress(emailAddress);
return this;
}
/**
*
* The ARN of the behavior graph that the member account was invited to.
*
*
* @param graphArn
* The ARN of the behavior graph that the member account was invited to.
*/
public void setGraphArn(String graphArn) {
this.graphArn = graphArn;
}
/**
*
* The ARN of the behavior graph that the member account was invited to.
*
*
* @return The ARN of the behavior graph that the member account was invited to.
*/
public String getGraphArn() {
return this.graphArn;
}
/**
*
* The ARN of the behavior graph that the member account was invited to.
*
*
* @param graphArn
* The ARN of the behavior graph that the member account was invited to.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public MemberDetail withGraphArn(String graphArn) {
setGraphArn(graphArn);
return this;
}
/**
*
* The AWS account identifier of the master account for the behavior graph.
*
*
* @param masterId
* The AWS account identifier of the master account for the behavior graph.
*/
public void setMasterId(String masterId) {
this.masterId = masterId;
}
/**
*
* The AWS account identifier of the master account for the behavior graph.
*
*
* @return The AWS account identifier of the master account for the behavior graph.
*/
public String getMasterId() {
return this.masterId;
}
/**
*
* The AWS account identifier of the master account for the behavior graph.
*
*
* @param masterId
* The AWS account identifier of the master account for the behavior graph.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public MemberDetail withMasterId(String masterId) {
setMasterId(masterId);
return this;
}
/**
*
* The current membership status of the member account. The status can have one of the following values:
*
*
* -
*
* INVITED
- Indicates that the member was sent an invitation but has not yet responded.
*
*
* -
*
* VERIFICATION_IN_PROGRESS
- Indicates that Detective is verifying that the account identifier and
* email address provided for the member account match. If they do match, then Detective sends the invitation. If
* the email address and account identifier don't match, then the member cannot be added to the behavior graph.
*
*
* -
*
* VERIFICATION_FAILED
- Indicates that the account and email address provided for the member account
* do not match, and Detective did not send an invitation to the account.
*
*
* -
*
* ENABLED
- Indicates that the member account accepted the invitation to contribute to the behavior
* graph.
*
*
* -
*
* ACCEPTED_BUT_DISABLED
- Indicates that the member account accepted the invitation but is prevented
* from contributing data to the behavior graph. DisabledReason
provides the reason why the member
* account is not enabled.
*
*
*
*
* Member accounts that declined an invitation or that were removed from the behavior graph are not included.
*
*
* @param status
* The current membership status of the member account. The status can have one of the following values:
*
* -
*
* INVITED
- Indicates that the member was sent an invitation but has not yet responded.
*
*
* -
*
* VERIFICATION_IN_PROGRESS
- Indicates that Detective is verifying that the account identifier
* and email address provided for the member account match. If they do match, then Detective sends the
* invitation. If the email address and account identifier don't match, then the member cannot be added to
* the behavior graph.
*
*
* -
*
* VERIFICATION_FAILED
- Indicates that the account and email address provided for the member
* account do not match, and Detective did not send an invitation to the account.
*
*
* -
*
* ENABLED
- Indicates that the member account accepted the invitation to contribute to the
* behavior graph.
*
*
* -
*
* ACCEPTED_BUT_DISABLED
- Indicates that the member account accepted the invitation but is
* prevented from contributing data to the behavior graph. DisabledReason
provides the reason
* why the member account is not enabled.
*
*
*
*
* Member accounts that declined an invitation or that were removed from the behavior graph are not included.
* @see MemberStatus
*/
public void setStatus(String status) {
this.status = status;
}
/**
*
* The current membership status of the member account. The status can have one of the following values:
*
*
* -
*
* INVITED
- Indicates that the member was sent an invitation but has not yet responded.
*
*
* -
*
* VERIFICATION_IN_PROGRESS
- Indicates that Detective is verifying that the account identifier and
* email address provided for the member account match. If they do match, then Detective sends the invitation. If
* the email address and account identifier don't match, then the member cannot be added to the behavior graph.
*
*
* -
*
* VERIFICATION_FAILED
- Indicates that the account and email address provided for the member account
* do not match, and Detective did not send an invitation to the account.
*
*
* -
*
* ENABLED
- Indicates that the member account accepted the invitation to contribute to the behavior
* graph.
*
*
* -
*
* ACCEPTED_BUT_DISABLED
- Indicates that the member account accepted the invitation but is prevented
* from contributing data to the behavior graph. DisabledReason
provides the reason why the member
* account is not enabled.
*
*
*
*
* Member accounts that declined an invitation or that were removed from the behavior graph are not included.
*
*
* @return The current membership status of the member account. The status can have one of the following values:
*
* -
*
* INVITED
- Indicates that the member was sent an invitation but has not yet responded.
*
*
* -
*
* VERIFICATION_IN_PROGRESS
- Indicates that Detective is verifying that the account identifier
* and email address provided for the member account match. If they do match, then Detective sends the
* invitation. If the email address and account identifier don't match, then the member cannot be added to
* the behavior graph.
*
*
* -
*
* VERIFICATION_FAILED
- Indicates that the account and email address provided for the member
* account do not match, and Detective did not send an invitation to the account.
*
*
* -
*
* ENABLED
- Indicates that the member account accepted the invitation to contribute to the
* behavior graph.
*
*
* -
*
* ACCEPTED_BUT_DISABLED
- Indicates that the member account accepted the invitation but is
* prevented from contributing data to the behavior graph. DisabledReason
provides the reason
* why the member account is not enabled.
*
*
*
*
* Member accounts that declined an invitation or that were removed from the behavior graph are not
* included.
* @see MemberStatus
*/
public String getStatus() {
return this.status;
}
/**
*
* The current membership status of the member account. The status can have one of the following values:
*
*
* -
*
* INVITED
- Indicates that the member was sent an invitation but has not yet responded.
*
*
* -
*
* VERIFICATION_IN_PROGRESS
- Indicates that Detective is verifying that the account identifier and
* email address provided for the member account match. If they do match, then Detective sends the invitation. If
* the email address and account identifier don't match, then the member cannot be added to the behavior graph.
*
*
* -
*
* VERIFICATION_FAILED
- Indicates that the account and email address provided for the member account
* do not match, and Detective did not send an invitation to the account.
*
*
* -
*
* ENABLED
- Indicates that the member account accepted the invitation to contribute to the behavior
* graph.
*
*
* -
*
* ACCEPTED_BUT_DISABLED
- Indicates that the member account accepted the invitation but is prevented
* from contributing data to the behavior graph. DisabledReason
provides the reason why the member
* account is not enabled.
*
*
*
*
* Member accounts that declined an invitation or that were removed from the behavior graph are not included.
*
*
* @param status
* The current membership status of the member account. The status can have one of the following values:
*
* -
*
* INVITED
- Indicates that the member was sent an invitation but has not yet responded.
*
*
* -
*
* VERIFICATION_IN_PROGRESS
- Indicates that Detective is verifying that the account identifier
* and email address provided for the member account match. If they do match, then Detective sends the
* invitation. If the email address and account identifier don't match, then the member cannot be added to
* the behavior graph.
*
*
* -
*
* VERIFICATION_FAILED
- Indicates that the account and email address provided for the member
* account do not match, and Detective did not send an invitation to the account.
*
*
* -
*
* ENABLED
- Indicates that the member account accepted the invitation to contribute to the
* behavior graph.
*
*
* -
*
* ACCEPTED_BUT_DISABLED
- Indicates that the member account accepted the invitation but is
* prevented from contributing data to the behavior graph. DisabledReason
provides the reason
* why the member account is not enabled.
*
*
*
*
* Member accounts that declined an invitation or that were removed from the behavior graph are not included.
* @return Returns a reference to this object so that method calls can be chained together.
* @see MemberStatus
*/
public MemberDetail withStatus(String status) {
setStatus(status);
return this;
}
/**
*
* The current membership status of the member account. The status can have one of the following values:
*
*
* -
*
* INVITED
- Indicates that the member was sent an invitation but has not yet responded.
*
*
* -
*
* VERIFICATION_IN_PROGRESS
- Indicates that Detective is verifying that the account identifier and
* email address provided for the member account match. If they do match, then Detective sends the invitation. If
* the email address and account identifier don't match, then the member cannot be added to the behavior graph.
*
*
* -
*
* VERIFICATION_FAILED
- Indicates that the account and email address provided for the member account
* do not match, and Detective did not send an invitation to the account.
*
*
* -
*
* ENABLED
- Indicates that the member account accepted the invitation to contribute to the behavior
* graph.
*
*
* -
*
* ACCEPTED_BUT_DISABLED
- Indicates that the member account accepted the invitation but is prevented
* from contributing data to the behavior graph. DisabledReason
provides the reason why the member
* account is not enabled.
*
*
*
*
* Member accounts that declined an invitation or that were removed from the behavior graph are not included.
*
*
* @param status
* The current membership status of the member account. The status can have one of the following values:
*
* -
*
* INVITED
- Indicates that the member was sent an invitation but has not yet responded.
*
*
* -
*
* VERIFICATION_IN_PROGRESS
- Indicates that Detective is verifying that the account identifier
* and email address provided for the member account match. If they do match, then Detective sends the
* invitation. If the email address and account identifier don't match, then the member cannot be added to
* the behavior graph.
*
*
* -
*
* VERIFICATION_FAILED
- Indicates that the account and email address provided for the member
* account do not match, and Detective did not send an invitation to the account.
*
*
* -
*
* ENABLED
- Indicates that the member account accepted the invitation to contribute to the
* behavior graph.
*
*
* -
*
* ACCEPTED_BUT_DISABLED
- Indicates that the member account accepted the invitation but is
* prevented from contributing data to the behavior graph. DisabledReason
provides the reason
* why the member account is not enabled.
*
*
*
*
* Member accounts that declined an invitation or that were removed from the behavior graph are not included.
* @return Returns a reference to this object so that method calls can be chained together.
* @see MemberStatus
*/
public MemberDetail withStatus(MemberStatus status) {
this.status = status.toString();
return this;
}
/**
*
* For member accounts with a status of ACCEPTED_BUT_DISABLED
, the reason that the member account is
* not enabled.
*
*
* The reason can have one of the following values:
*
*
* -
*
* VOLUME_TOO_HIGH
- Indicates that adding the member account would cause the data volume for the
* behavior graph to be too high.
*
*
* -
*
* VOLUME_UNKNOWN
- Indicates that Detective is unable to verify the data volume for the member
* account. This is usually because the member account is not enrolled in Amazon GuardDuty.
*
*
*
*
* @param disabledReason
* For member accounts with a status of ACCEPTED_BUT_DISABLED
, the reason that the member
* account is not enabled.
*
* The reason can have one of the following values:
*
*
* -
*
* VOLUME_TOO_HIGH
- Indicates that adding the member account would cause the data volume for
* the behavior graph to be too high.
*
*
* -
*
* VOLUME_UNKNOWN
- Indicates that Detective is unable to verify the data volume for the member
* account. This is usually because the member account is not enrolled in Amazon GuardDuty.
*
*
* @see MemberDisabledReason
*/
public void setDisabledReason(String disabledReason) {
this.disabledReason = disabledReason;
}
/**
*
* For member accounts with a status of ACCEPTED_BUT_DISABLED
, the reason that the member account is
* not enabled.
*
*
* The reason can have one of the following values:
*
*
* -
*
* VOLUME_TOO_HIGH
- Indicates that adding the member account would cause the data volume for the
* behavior graph to be too high.
*
*
* -
*
* VOLUME_UNKNOWN
- Indicates that Detective is unable to verify the data volume for the member
* account. This is usually because the member account is not enrolled in Amazon GuardDuty.
*
*
*
*
* @return For member accounts with a status of ACCEPTED_BUT_DISABLED
, the reason that the member
* account is not enabled.
*
* The reason can have one of the following values:
*
*
* -
*
* VOLUME_TOO_HIGH
- Indicates that adding the member account would cause the data volume for
* the behavior graph to be too high.
*
*
* -
*
* VOLUME_UNKNOWN
- Indicates that Detective is unable to verify the data volume for the member
* account. This is usually because the member account is not enrolled in Amazon GuardDuty.
*
*
* @see MemberDisabledReason
*/
public String getDisabledReason() {
return this.disabledReason;
}
/**
*
* For member accounts with a status of ACCEPTED_BUT_DISABLED
, the reason that the member account is
* not enabled.
*
*
* The reason can have one of the following values:
*
*
* -
*
* VOLUME_TOO_HIGH
- Indicates that adding the member account would cause the data volume for the
* behavior graph to be too high.
*
*
* -
*
* VOLUME_UNKNOWN
- Indicates that Detective is unable to verify the data volume for the member
* account. This is usually because the member account is not enrolled in Amazon GuardDuty.
*
*
*
*
* @param disabledReason
* For member accounts with a status of ACCEPTED_BUT_DISABLED
, the reason that the member
* account is not enabled.
*
* The reason can have one of the following values:
*
*
* -
*
* VOLUME_TOO_HIGH
- Indicates that adding the member account would cause the data volume for
* the behavior graph to be too high.
*
*
* -
*
* VOLUME_UNKNOWN
- Indicates that Detective is unable to verify the data volume for the member
* account. This is usually because the member account is not enrolled in Amazon GuardDuty.
*
*
* @return Returns a reference to this object so that method calls can be chained together.
* @see MemberDisabledReason
*/
public MemberDetail withDisabledReason(String disabledReason) {
setDisabledReason(disabledReason);
return this;
}
/**
*
* For member accounts with a status of ACCEPTED_BUT_DISABLED
, the reason that the member account is
* not enabled.
*
*
* The reason can have one of the following values:
*
*
* -
*
* VOLUME_TOO_HIGH
- Indicates that adding the member account would cause the data volume for the
* behavior graph to be too high.
*
*
* -
*
* VOLUME_UNKNOWN
- Indicates that Detective is unable to verify the data volume for the member
* account. This is usually because the member account is not enrolled in Amazon GuardDuty.
*
*
*
*
* @param disabledReason
* For member accounts with a status of ACCEPTED_BUT_DISABLED
, the reason that the member
* account is not enabled.
*
* The reason can have one of the following values:
*
*
* -
*
* VOLUME_TOO_HIGH
- Indicates that adding the member account would cause the data volume for
* the behavior graph to be too high.
*
*
* -
*
* VOLUME_UNKNOWN
- Indicates that Detective is unable to verify the data volume for the member
* account. This is usually because the member account is not enrolled in Amazon GuardDuty.
*
*
* @return Returns a reference to this object so that method calls can be chained together.
* @see MemberDisabledReason
*/
public MemberDetail withDisabledReason(MemberDisabledReason disabledReason) {
this.disabledReason = disabledReason.toString();
return this;
}
/**
*
* The date and time that Detective sent the invitation to the member account. The value is in milliseconds since
* the epoch.
*
*
* @param invitedTime
* The date and time that Detective sent the invitation to the member account. The value is in milliseconds
* since the epoch.
*/
public void setInvitedTime(java.util.Date invitedTime) {
this.invitedTime = invitedTime;
}
/**
*
* The date and time that Detective sent the invitation to the member account. The value is in milliseconds since
* the epoch.
*
*
* @return The date and time that Detective sent the invitation to the member account. The value is in milliseconds
* since the epoch.
*/
public java.util.Date getInvitedTime() {
return this.invitedTime;
}
/**
*
* The date and time that Detective sent the invitation to the member account. The value is in milliseconds since
* the epoch.
*
*
* @param invitedTime
* The date and time that Detective sent the invitation to the member account. The value is in milliseconds
* since the epoch.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public MemberDetail withInvitedTime(java.util.Date invitedTime) {
setInvitedTime(invitedTime);
return this;
}
/**
*
* The date and time that the member account was last updated. The value is in milliseconds since the epoch.
*
*
* @param updatedTime
* The date and time that the member account was last updated. The value is in milliseconds since the epoch.
*/
public void setUpdatedTime(java.util.Date updatedTime) {
this.updatedTime = updatedTime;
}
/**
*
* The date and time that the member account was last updated. The value is in milliseconds since the epoch.
*
*
* @return The date and time that the member account was last updated. The value is in milliseconds since the epoch.
*/
public java.util.Date getUpdatedTime() {
return this.updatedTime;
}
/**
*
* The date and time that the member account was last updated. The value is in milliseconds since the epoch.
*
*
* @param updatedTime
* The date and time that the member account was last updated. The value is in milliseconds since the epoch.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public MemberDetail withUpdatedTime(java.util.Date updatedTime) {
setUpdatedTime(updatedTime);
return this;
}
/**
*
* The member account data volume as a percentage of the maximum allowed data volume. 0 indicates 0 percent, and 100
* indicates 100 percent.
*
*
* Note that this is not the percentage of the behavior graph data volume.
*
*
* For example, the data volume for the behavior graph is 80 GB per day. The maximum data volume is 160 GB per day.
* If the data volume for the member account is 40 GB per day, then PercentOfGraphUtilization
is 25. It
* represents 25% of the maximum allowed data volume.
*
*
* @param percentOfGraphUtilization
* The member account data volume as a percentage of the maximum allowed data volume. 0 indicates 0 percent,
* and 100 indicates 100 percent.
*
* Note that this is not the percentage of the behavior graph data volume.
*
*
* For example, the data volume for the behavior graph is 80 GB per day. The maximum data volume is 160 GB
* per day. If the data volume for the member account is 40 GB per day, then
* PercentOfGraphUtilization
is 25. It represents 25% of the maximum allowed data volume.
*/
public void setPercentOfGraphUtilization(Double percentOfGraphUtilization) {
this.percentOfGraphUtilization = percentOfGraphUtilization;
}
/**
*
* The member account data volume as a percentage of the maximum allowed data volume. 0 indicates 0 percent, and 100
* indicates 100 percent.
*
*
* Note that this is not the percentage of the behavior graph data volume.
*
*
* For example, the data volume for the behavior graph is 80 GB per day. The maximum data volume is 160 GB per day.
* If the data volume for the member account is 40 GB per day, then PercentOfGraphUtilization
is 25. It
* represents 25% of the maximum allowed data volume.
*
*
* @return The member account data volume as a percentage of the maximum allowed data volume. 0 indicates 0 percent,
* and 100 indicates 100 percent.
*
* Note that this is not the percentage of the behavior graph data volume.
*
*
* For example, the data volume for the behavior graph is 80 GB per day. The maximum data volume is 160 GB
* per day. If the data volume for the member account is 40 GB per day, then
* PercentOfGraphUtilization
is 25. It represents 25% of the maximum allowed data volume.
*/
public Double getPercentOfGraphUtilization() {
return this.percentOfGraphUtilization;
}
/**
*
* The member account data volume as a percentage of the maximum allowed data volume. 0 indicates 0 percent, and 100
* indicates 100 percent.
*
*
* Note that this is not the percentage of the behavior graph data volume.
*
*
* For example, the data volume for the behavior graph is 80 GB per day. The maximum data volume is 160 GB per day.
* If the data volume for the member account is 40 GB per day, then PercentOfGraphUtilization
is 25. It
* represents 25% of the maximum allowed data volume.
*
*
* @param percentOfGraphUtilization
* The member account data volume as a percentage of the maximum allowed data volume. 0 indicates 0 percent,
* and 100 indicates 100 percent.
*
* Note that this is not the percentage of the behavior graph data volume.
*
*
* For example, the data volume for the behavior graph is 80 GB per day. The maximum data volume is 160 GB
* per day. If the data volume for the member account is 40 GB per day, then
* PercentOfGraphUtilization
is 25. It represents 25% of the maximum allowed data volume.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public MemberDetail withPercentOfGraphUtilization(Double percentOfGraphUtilization) {
setPercentOfGraphUtilization(percentOfGraphUtilization);
return this;
}
/**
*
* The date and time when the graph utilization percentage was last updated.
*
*
* @param percentOfGraphUtilizationUpdatedTime
* The date and time when the graph utilization percentage was last updated.
*/
public void setPercentOfGraphUtilizationUpdatedTime(java.util.Date percentOfGraphUtilizationUpdatedTime) {
this.percentOfGraphUtilizationUpdatedTime = percentOfGraphUtilizationUpdatedTime;
}
/**
*
* The date and time when the graph utilization percentage was last updated.
*
*
* @return The date and time when the graph utilization percentage was last updated.
*/
public java.util.Date getPercentOfGraphUtilizationUpdatedTime() {
return this.percentOfGraphUtilizationUpdatedTime;
}
/**
*
* The date and time when the graph utilization percentage was last updated.
*
*
* @param percentOfGraphUtilizationUpdatedTime
* The date and time when the graph utilization percentage was last updated.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public MemberDetail withPercentOfGraphUtilizationUpdatedTime(java.util.Date percentOfGraphUtilizationUpdatedTime) {
setPercentOfGraphUtilizationUpdatedTime(percentOfGraphUtilizationUpdatedTime);
return this;
}
/**
* 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.
*
* @return A string representation of this object.
*
* @see java.lang.Object#toString()
*/
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (getAccountId() != null)
sb.append("AccountId: ").append(getAccountId()).append(",");
if (getEmailAddress() != null)
sb.append("EmailAddress: ").append(getEmailAddress()).append(",");
if (getGraphArn() != null)
sb.append("GraphArn: ").append(getGraphArn()).append(",");
if (getMasterId() != null)
sb.append("MasterId: ").append(getMasterId()).append(",");
if (getStatus() != null)
sb.append("Status: ").append(getStatus()).append(",");
if (getDisabledReason() != null)
sb.append("DisabledReason: ").append(getDisabledReason()).append(",");
if (getInvitedTime() != null)
sb.append("InvitedTime: ").append(getInvitedTime()).append(",");
if (getUpdatedTime() != null)
sb.append("UpdatedTime: ").append(getUpdatedTime()).append(",");
if (getPercentOfGraphUtilization() != null)
sb.append("PercentOfGraphUtilization: ").append(getPercentOfGraphUtilization()).append(",");
if (getPercentOfGraphUtilizationUpdatedTime() != null)
sb.append("PercentOfGraphUtilizationUpdatedTime: ").append(getPercentOfGraphUtilizationUpdatedTime());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof MemberDetail == false)
return false;
MemberDetail other = (MemberDetail) obj;
if (other.getAccountId() == null ^ this.getAccountId() == null)
return false;
if (other.getAccountId() != null && other.getAccountId().equals(this.getAccountId()) == false)
return false;
if (other.getEmailAddress() == null ^ this.getEmailAddress() == null)
return false;
if (other.getEmailAddress() != null && other.getEmailAddress().equals(this.getEmailAddress()) == false)
return false;
if (other.getGraphArn() == null ^ this.getGraphArn() == null)
return false;
if (other.getGraphArn() != null && other.getGraphArn().equals(this.getGraphArn()) == false)
return false;
if (other.getMasterId() == null ^ this.getMasterId() == null)
return false;
if (other.getMasterId() != null && other.getMasterId().equals(this.getMasterId()) == false)
return false;
if (other.getStatus() == null ^ this.getStatus() == null)
return false;
if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false)
return false;
if (other.getDisabledReason() == null ^ this.getDisabledReason() == null)
return false;
if (other.getDisabledReason() != null && other.getDisabledReason().equals(this.getDisabledReason()) == false)
return false;
if (other.getInvitedTime() == null ^ this.getInvitedTime() == null)
return false;
if (other.getInvitedTime() != null && other.getInvitedTime().equals(this.getInvitedTime()) == false)
return false;
if (other.getUpdatedTime() == null ^ this.getUpdatedTime() == null)
return false;
if (other.getUpdatedTime() != null && other.getUpdatedTime().equals(this.getUpdatedTime()) == false)
return false;
if (other.getPercentOfGraphUtilization() == null ^ this.getPercentOfGraphUtilization() == null)
return false;
if (other.getPercentOfGraphUtilization() != null && other.getPercentOfGraphUtilization().equals(this.getPercentOfGraphUtilization()) == false)
return false;
if (other.getPercentOfGraphUtilizationUpdatedTime() == null ^ this.getPercentOfGraphUtilizationUpdatedTime() == null)
return false;
if (other.getPercentOfGraphUtilizationUpdatedTime() != null
&& other.getPercentOfGraphUtilizationUpdatedTime().equals(this.getPercentOfGraphUtilizationUpdatedTime()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getAccountId() == null) ? 0 : getAccountId().hashCode());
hashCode = prime * hashCode + ((getEmailAddress() == null) ? 0 : getEmailAddress().hashCode());
hashCode = prime * hashCode + ((getGraphArn() == null) ? 0 : getGraphArn().hashCode());
hashCode = prime * hashCode + ((getMasterId() == null) ? 0 : getMasterId().hashCode());
hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode());
hashCode = prime * hashCode + ((getDisabledReason() == null) ? 0 : getDisabledReason().hashCode());
hashCode = prime * hashCode + ((getInvitedTime() == null) ? 0 : getInvitedTime().hashCode());
hashCode = prime * hashCode + ((getUpdatedTime() == null) ? 0 : getUpdatedTime().hashCode());
hashCode = prime * hashCode + ((getPercentOfGraphUtilization() == null) ? 0 : getPercentOfGraphUtilization().hashCode());
hashCode = prime * hashCode + ((getPercentOfGraphUtilizationUpdatedTime() == null) ? 0 : getPercentOfGraphUtilizationUpdatedTime().hashCode());
return hashCode;
}
@Override
public MemberDetail clone() {
try {
return (MemberDetail) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
@com.amazonaws.annotation.SdkInternalApi
@Override
public void marshall(ProtocolMarshaller protocolMarshaller) {
com.amazonaws.services.detective.model.transform.MemberDetailMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}