All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.inspector2.model.Member Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Inspector2 module holds the client classes that are used for communicating with Inspector2 Service

There is a newer version: 1.12.772
Show newest version
/*
 * Copyright 2019-2024 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.inspector2.model;

import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* Details on a member account in your organization. *

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

* The Amazon Web Services account ID of the member account. *

*/ private String accountId; /** *

* The Amazon Web Services account ID of the Amazon Inspector delegated administrator for this member account. *

*/ private String delegatedAdminAccountId; /** *

* The status of the member account. *

*/ private String relationshipStatus; /** *

* A timestamp showing when the status of this member was last updated. *

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

* The Amazon Web Services account ID of the member account. *

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

* The Amazon Web Services account ID of the member account. *

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

* The Amazon Web Services account ID of the member account. *

* * @param accountId * The Amazon Web Services account ID of the member account. * @return Returns a reference to this object so that method calls can be chained together. */ public Member withAccountId(String accountId) { setAccountId(accountId); return this; } /** *

* The Amazon Web Services account ID of the Amazon Inspector delegated administrator for this member account. *

* * @param delegatedAdminAccountId * The Amazon Web Services account ID of the Amazon Inspector delegated administrator for this member * account. */ public void setDelegatedAdminAccountId(String delegatedAdminAccountId) { this.delegatedAdminAccountId = delegatedAdminAccountId; } /** *

* The Amazon Web Services account ID of the Amazon Inspector delegated administrator for this member account. *

* * @return The Amazon Web Services account ID of the Amazon Inspector delegated administrator for this member * account. */ public String getDelegatedAdminAccountId() { return this.delegatedAdminAccountId; } /** *

* The Amazon Web Services account ID of the Amazon Inspector delegated administrator for this member account. *

* * @param delegatedAdminAccountId * The Amazon Web Services account ID of the Amazon Inspector delegated administrator for this member * account. * @return Returns a reference to this object so that method calls can be chained together. */ public Member withDelegatedAdminAccountId(String delegatedAdminAccountId) { setDelegatedAdminAccountId(delegatedAdminAccountId); return this; } /** *

* The status of the member account. *

* * @param relationshipStatus * The status of the member account. * @see RelationshipStatus */ public void setRelationshipStatus(String relationshipStatus) { this.relationshipStatus = relationshipStatus; } /** *

* The status of the member account. *

* * @return The status of the member account. * @see RelationshipStatus */ public String getRelationshipStatus() { return this.relationshipStatus; } /** *

* The status of the member account. *

* * @param relationshipStatus * The status of the member account. * @return Returns a reference to this object so that method calls can be chained together. * @see RelationshipStatus */ public Member withRelationshipStatus(String relationshipStatus) { setRelationshipStatus(relationshipStatus); return this; } /** *

* The status of the member account. *

* * @param relationshipStatus * The status of the member account. * @return Returns a reference to this object so that method calls can be chained together. * @see RelationshipStatus */ public Member withRelationshipStatus(RelationshipStatus relationshipStatus) { this.relationshipStatus = relationshipStatus.toString(); return this; } /** *

* A timestamp showing when the status of this member was last updated. *

* * @param updatedAt * A timestamp showing when the status of this member was last updated. */ public void setUpdatedAt(java.util.Date updatedAt) { this.updatedAt = updatedAt; } /** *

* A timestamp showing when the status of this member was last updated. *

* * @return A timestamp showing when the status of this member was last updated. */ public java.util.Date getUpdatedAt() { return this.updatedAt; } /** *

* A timestamp showing when the status of this member was last updated. *

* * @param updatedAt * A timestamp showing when the status of this member was last updated. * @return Returns a reference to this object so that method calls can be chained together. */ public Member withUpdatedAt(java.util.Date updatedAt) { setUpdatedAt(updatedAt); 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 (getDelegatedAdminAccountId() != null) sb.append("DelegatedAdminAccountId: ").append(getDelegatedAdminAccountId()).append(","); if (getRelationshipStatus() != null) sb.append("RelationshipStatus: ").append(getRelationshipStatus()).append(","); if (getUpdatedAt() != null) sb.append("UpdatedAt: ").append(getUpdatedAt()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof Member == false) return false; Member other = (Member) obj; if (other.getAccountId() == null ^ this.getAccountId() == null) return false; if (other.getAccountId() != null && other.getAccountId().equals(this.getAccountId()) == false) return false; if (other.getDelegatedAdminAccountId() == null ^ this.getDelegatedAdminAccountId() == null) return false; if (other.getDelegatedAdminAccountId() != null && other.getDelegatedAdminAccountId().equals(this.getDelegatedAdminAccountId()) == false) return false; if (other.getRelationshipStatus() == null ^ this.getRelationshipStatus() == null) return false; if (other.getRelationshipStatus() != null && other.getRelationshipStatus().equals(this.getRelationshipStatus()) == false) return false; if (other.getUpdatedAt() == null ^ this.getUpdatedAt() == null) return false; if (other.getUpdatedAt() != null && other.getUpdatedAt().equals(this.getUpdatedAt()) == 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 + ((getDelegatedAdminAccountId() == null) ? 0 : getDelegatedAdminAccountId().hashCode()); hashCode = prime * hashCode + ((getRelationshipStatus() == null) ? 0 : getRelationshipStatus().hashCode()); hashCode = prime * hashCode + ((getUpdatedAt() == null) ? 0 : getUpdatedAt().hashCode()); return hashCode; } @Override public Member clone() { try { return (Member) 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.inspector2.model.transform.MemberMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy