/* * Copyright 2018-2023 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 in a behavior graph. *

* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class MemberDetail implements Serializable, Cloneable, StructuredPojo { /** *

* The Amazon Web Services account identifier for the member account. *

*/ private String accountId; /** *

* The Amazon Web Services account root user email address for the member account. *

*/ private String emailAddress; /** *

* The ARN of the behavior graph. *

*/ private String graphArn; /** *

* The Amazon Web Services account identifier of the administrator account for the behavior graph. *

*/ @Deprecated private String masterId; /** *

* The Amazon Web Services account identifier of the administrator account for the behavior graph. *

*/ private String administratorId; /** *

* The current membership status of the member account. The status can have one of the following values: *

* *

* Invited accounts that declined an invitation or that were removed from the behavior graph are not included. In * the organization behavior graph, organization accounts that the Detective administrator account did not enable * 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: *

* */ private String disabledReason; /** *

* For invited accounts, the date and time that Detective sent the invitation to the account. The value is an * ISO8601 formatted string. For example, 2021-08-18T16:35:56.284Z. *

*/ private java.util.Date invitedTime; /** *

* The date and time that the member account was last updated. The value is an ISO8601 formatted string. For * example, 2021-08-18T16:35:56.284Z. *

*/ private java.util.Date updatedTime; /** *

* The data volume in bytes per day for the member account. *

*/ @Deprecated private Long volumeUsageInBytes; /** *

* The data and time when the member account data volume was last updated. The value is an ISO8601 formatted string. * For example, 2021-08-18T16:35:56.284Z. *

*/ @Deprecated private java.util.Date volumeUsageUpdatedTime; /** *

* 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. *

*/ @Deprecated private Double percentOfGraphUtilization; /** *

* The date and time when the graph utilization percentage was last updated. The value is an ISO8601 formatted * string. For example, 2021-08-18T16:35:56.284Z. *

*/ @Deprecated private java.util.Date percentOfGraphUtilizationUpdatedTime; /** *

* The type of behavior graph membership. *

*

* For an organization account in the organization behavior graph, the type is ORGANIZATION. *

*

* For an account that was invited to a behavior graph, the type is INVITATION. *

*/ private String invitationType; /** *

* Details on the volume of usage for each data source package in a behavior graph. *

*/ private java.util.Map volumeUsageByDatasourcePackage; /** *

* The state of a data source package for the behavior graph. *

*/ private java.util.Map datasourcePackageIngestStates; /** *

* The Amazon Web Services account identifier for the member account. *

* * @param accountId * The Amazon Web Services account identifier for the member account. */ public void setAccountId(String accountId) { this.accountId = accountId; } /** *

* The Amazon Web Services account identifier for the member account. *

* * @return The Amazon Web Services account identifier for the member account. */ public String getAccountId() { return this.accountId; } /** *

* The Amazon Web Services account identifier for the member account. *

* * @param accountId * The Amazon Web Services 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 Amazon Web Services account root user email address for the member account. *

* * @param emailAddress * The Amazon Web Services account root user email address for the member account. */ public void setEmailAddress(String emailAddress) { this.emailAddress = emailAddress; } /** *

* The Amazon Web Services account root user email address for the member account. *

* * @return The Amazon Web Services account root user email address for the member account. */ public String getEmailAddress() { return this.emailAddress; } /** *

* The Amazon Web Services account root user email address for the member account. *

* * @param emailAddress * The Amazon Web Services 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. *

* * @param graphArn * The ARN of the behavior graph. */ public void setGraphArn(String graphArn) { this.graphArn = graphArn; } /** *

* The ARN of the behavior graph. *

* * @return The ARN of the behavior graph. */ public String getGraphArn() { return this.graphArn; } /** *

* The ARN of the behavior graph. *

* * @param graphArn * The ARN of the behavior graph. * @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 Amazon Web Services account identifier of the administrator account for the behavior graph. *

* * @param masterId * The Amazon Web Services account identifier of the administrator account for the behavior graph. */ @Deprecated public void setMasterId(String masterId) { this.masterId = masterId; } /** *

* The Amazon Web Services account identifier of the administrator account for the behavior graph. *

* * @return The Amazon Web Services account identifier of the administrator account for the behavior graph. */ @Deprecated public String getMasterId() { return this.masterId; } /** *

* The Amazon Web Services account identifier of the administrator account for the behavior graph. *

* * @param masterId * The Amazon Web Services account identifier of the administrator account for the behavior graph. * @return Returns a reference to this object so that method calls can be chained together. */ @Deprecated public MemberDetail withMasterId(String masterId) { setMasterId(masterId); return this; } /** *

* The Amazon Web Services account identifier of the administrator account for the behavior graph. *

* * @param administratorId * The Amazon Web Services account identifier of the administrator account for the behavior graph. */ public void setAdministratorId(String administratorId) { this.administratorId = administratorId; } /** *

* The Amazon Web Services account identifier of the administrator account for the behavior graph. *

* * @return The Amazon Web Services account identifier of the administrator account for the behavior graph. */ public String getAdministratorId() { return this.administratorId; } /** *

* The Amazon Web Services account identifier of the administrator account for the behavior graph. *

* * @param administratorId * The Amazon Web Services account identifier of the administrator account for the behavior graph. * @return Returns a reference to this object so that method calls can be chained together. */ public MemberDetail withAdministratorId(String administratorId) { setAdministratorId(administratorId); return this; } /** *

* The current membership status of the member account. The status can have one of the following values: *

* *

* Invited accounts that declined an invitation or that were removed from the behavior graph are not included. In * the organization behavior graph, organization accounts that the Detective administrator account did not enable * are not included. *

* * @param status * The current membership status of the member account. The status can have one of the following values:

* *

* Invited accounts that declined an invitation or that were removed from the behavior graph are not * included. In the organization behavior graph, organization accounts that the Detective administrator * account did not enable 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 accounts that declined an invitation or that were removed from the behavior graph are not included. In * the organization behavior graph, organization accounts that the Detective administrator account did not enable * are not included. *

* * @return The current membership status of the member account. The status can have one of the following values:

* *

* Invited accounts that declined an invitation or that were removed from the behavior graph are not * included. In the organization behavior graph, organization accounts that the Detective administrator * account did not enable 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 accounts that declined an invitation or that were removed from the behavior graph are not included. In * the organization behavior graph, organization accounts that the Detective administrator account did not enable * are not included. *

* * @param status * The current membership status of the member account. The status can have one of the following values:

* *

* Invited accounts that declined an invitation or that were removed from the behavior graph are not * included. In the organization behavior graph, organization accounts that the Detective administrator * account did not enable 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 accounts that declined an invitation or that were removed from the behavior graph are not included. In * the organization behavior graph, organization accounts that the Detective administrator account did not enable * are not included. *

* * @param status * The current membership status of the member account. The status can have one of the following values:

* *

* Invited accounts that declined an invitation or that were removed from the behavior graph are not * included. In the organization behavior graph, organization accounts that the Detective administrator * account did not enable 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: *

* * * @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: *

*