/* * 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.managedblockchain.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* A summary of configuration properties for a member. *
** Applies only to Hyperledger Fabric. *
* * @see AWS * API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class MemberSummary implements Serializable, Cloneable, StructuredPojo { /** ** The unique identifier of the member. *
*/ private String id; /** ** The name of the member. *
*/ private String name; /** ** An optional description of the member. *
*/ private String description; /** ** The status of the member. *
*
* CREATING
- The Amazon Web Services account is in the process of creating a member.
*
* AVAILABLE
- The member has been created and can participate in the network.
*
* CREATE_FAILED
- The Amazon Web Services account attempted to create a member and creation failed.
*
* UPDATING
- The member is in the process of being updated.
*
* DELETING
- The member and all associated resources are in the process of being deleted. Either the
* Amazon Web Services account that owns the member deleted it, or the member is being deleted as the result of an
* APPROVED
PROPOSAL
to remove the member.
*
* DELETED
- The member can no longer participate on the network and all associated resources are
* deleted. Either the Amazon Web Services account that owns the member deleted it, or the member is being deleted
* as the result of an APPROVED
PROPOSAL
to remove the member.
*
* INACCESSIBLE_ENCRYPTION_KEY
- The member is impaired and might not function as expected because it
* cannot access the specified customer managed key in Key Management Service (KMS) for encryption at rest. Either
* the KMS key was disabled or deleted, or the grants on the key were revoked.
*
* The effect of disabling or deleting a key or of revoking a grant isn't immediate. It might take some time for the * member resource to discover that the key is inaccessible. When a resource is in this state, we recommend deleting * and recreating the resource. *
** The date and time that the member was created. *
*/ private java.util.Date creationDate; /** ** An indicator of whether the member is owned by your Amazon Web Services account or a different Amazon Web * Services account. *
*/ private Boolean isOwned; /** ** The Amazon Resource Name (ARN) of the member. For more information about ARNs and their format, see Amazon Resource Names * (ARNs) in the Amazon Web Services General Reference. *
*/ private String arn; /** ** The unique identifier of the member. *
* * @param id * The unique identifier of the member. */ public void setId(String id) { this.id = id; } /** ** The unique identifier of the member. *
* * @return The unique identifier of the member. */ public String getId() { return this.id; } /** ** The unique identifier of the member. *
* * @param id * The unique identifier of the member. * @return Returns a reference to this object so that method calls can be chained together. */ public MemberSummary withId(String id) { setId(id); return this; } /** ** The name of the member. *
* * @param name * The name of the member. */ public void setName(String name) { this.name = name; } /** ** The name of the member. *
* * @return The name of the member. */ public String getName() { return this.name; } /** ** The name of the member. *
* * @param name * The name of the member. * @return Returns a reference to this object so that method calls can be chained together. */ public MemberSummary withName(String name) { setName(name); return this; } /** ** An optional description of the member. *
* * @param description * An optional description of the member. */ public void setDescription(String description) { this.description = description; } /** ** An optional description of the member. *
* * @return An optional description of the member. */ public String getDescription() { return this.description; } /** ** An optional description of the member. *
* * @param description * An optional description of the member. * @return Returns a reference to this object so that method calls can be chained together. */ public MemberSummary withDescription(String description) { setDescription(description); return this; } /** ** The status of the member. *
*
* CREATING
- The Amazon Web Services account is in the process of creating a member.
*
* AVAILABLE
- The member has been created and can participate in the network.
*
* CREATE_FAILED
- The Amazon Web Services account attempted to create a member and creation failed.
*
* UPDATING
- The member is in the process of being updated.
*
* DELETING
- The member and all associated resources are in the process of being deleted. Either the
* Amazon Web Services account that owns the member deleted it, or the member is being deleted as the result of an
* APPROVED
PROPOSAL
to remove the member.
*
* DELETED
- The member can no longer participate on the network and all associated resources are
* deleted. Either the Amazon Web Services account that owns the member deleted it, or the member is being deleted
* as the result of an APPROVED
PROPOSAL
to remove the member.
*
* INACCESSIBLE_ENCRYPTION_KEY
- The member is impaired and might not function as expected because it
* cannot access the specified customer managed key in Key Management Service (KMS) for encryption at rest. Either
* the KMS key was disabled or deleted, or the grants on the key were revoked.
*
* The effect of disabling or deleting a key or of revoking a grant isn't immediate. It might take some time for the * member resource to discover that the key is inaccessible. When a resource is in this state, we recommend deleting * and recreating the resource. *
*
* CREATING
- The Amazon Web Services account is in the process of creating a member.
*
* AVAILABLE
- The member has been created and can participate in the network.
*
* CREATE_FAILED
- The Amazon Web Services account attempted to create a member and creation
* failed.
*
* UPDATING
- The member is in the process of being updated.
*
* DELETING
- The member and all associated resources are in the process of being deleted.
* Either the Amazon Web Services account that owns the member deleted it, or the member is being deleted as
* the result of an APPROVED
PROPOSAL
to remove the member.
*
* DELETED
- The member can no longer participate on the network and all associated resources
* are deleted. Either the Amazon Web Services account that owns the member deleted it, or the member is
* being deleted as the result of an APPROVED
PROPOSAL
to remove the member.
*
* INACCESSIBLE_ENCRYPTION_KEY
- The member is impaired and might not function as expected
* because it cannot access the specified customer managed key in Key Management Service (KMS) for encryption
* at rest. Either the KMS key was disabled or deleted, or the grants on the key were revoked.
*
* The effect of disabling or deleting a key or of revoking a grant isn't immediate. It might take some time * for the member resource to discover that the key is inaccessible. When a resource is in this state, we * recommend deleting and recreating the resource. *
** The status of the member. *
*
* CREATING
- The Amazon Web Services account is in the process of creating a member.
*
* AVAILABLE
- The member has been created and can participate in the network.
*
* CREATE_FAILED
- The Amazon Web Services account attempted to create a member and creation failed.
*
* UPDATING
- The member is in the process of being updated.
*
* DELETING
- The member and all associated resources are in the process of being deleted. Either the
* Amazon Web Services account that owns the member deleted it, or the member is being deleted as the result of an
* APPROVED
PROPOSAL
to remove the member.
*
* DELETED
- The member can no longer participate on the network and all associated resources are
* deleted. Either the Amazon Web Services account that owns the member deleted it, or the member is being deleted
* as the result of an APPROVED
PROPOSAL
to remove the member.
*
* INACCESSIBLE_ENCRYPTION_KEY
- The member is impaired and might not function as expected because it
* cannot access the specified customer managed key in Key Management Service (KMS) for encryption at rest. Either
* the KMS key was disabled or deleted, or the grants on the key were revoked.
*
* The effect of disabling or deleting a key or of revoking a grant isn't immediate. It might take some time for the * member resource to discover that the key is inaccessible. When a resource is in this state, we recommend deleting * and recreating the resource. *
*
* CREATING
- The Amazon Web Services account is in the process of creating a member.
*
* AVAILABLE
- The member has been created and can participate in the network.
*
* CREATE_FAILED
- The Amazon Web Services account attempted to create a member and creation
* failed.
*
* UPDATING
- The member is in the process of being updated.
*
* DELETING
- The member and all associated resources are in the process of being deleted.
* Either the Amazon Web Services account that owns the member deleted it, or the member is being deleted as
* the result of an APPROVED
PROPOSAL
to remove the member.
*
* DELETED
- The member can no longer participate on the network and all associated resources
* are deleted. Either the Amazon Web Services account that owns the member deleted it, or the member is
* being deleted as the result of an APPROVED
PROPOSAL
to remove the member.
*
* INACCESSIBLE_ENCRYPTION_KEY
- The member is impaired and might not function as expected
* because it cannot access the specified customer managed key in Key Management Service (KMS) for
* encryption at rest. Either the KMS key was disabled or deleted, or the grants on the key were revoked.
*
* The effect of disabling or deleting a key or of revoking a grant isn't immediate. It might take some time * for the member resource to discover that the key is inaccessible. When a resource is in this state, we * recommend deleting and recreating the resource. *
** The status of the member. *
*
* CREATING
- The Amazon Web Services account is in the process of creating a member.
*
* AVAILABLE
- The member has been created and can participate in the network.
*
* CREATE_FAILED
- The Amazon Web Services account attempted to create a member and creation failed.
*
* UPDATING
- The member is in the process of being updated.
*
* DELETING
- The member and all associated resources are in the process of being deleted. Either the
* Amazon Web Services account that owns the member deleted it, or the member is being deleted as the result of an
* APPROVED
PROPOSAL
to remove the member.
*
* DELETED
- The member can no longer participate on the network and all associated resources are
* deleted. Either the Amazon Web Services account that owns the member deleted it, or the member is being deleted
* as the result of an APPROVED
PROPOSAL
to remove the member.
*
* INACCESSIBLE_ENCRYPTION_KEY
- The member is impaired and might not function as expected because it
* cannot access the specified customer managed key in Key Management Service (KMS) for encryption at rest. Either
* the KMS key was disabled or deleted, or the grants on the key were revoked.
*
* The effect of disabling or deleting a key or of revoking a grant isn't immediate. It might take some time for the * member resource to discover that the key is inaccessible. When a resource is in this state, we recommend deleting * and recreating the resource. *
*
* CREATING
- The Amazon Web Services account is in the process of creating a member.
*
* AVAILABLE
- The member has been created and can participate in the network.
*
* CREATE_FAILED
- The Amazon Web Services account attempted to create a member and creation
* failed.
*
* UPDATING
- The member is in the process of being updated.
*
* DELETING
- The member and all associated resources are in the process of being deleted.
* Either the Amazon Web Services account that owns the member deleted it, or the member is being deleted as
* the result of an APPROVED
PROPOSAL
to remove the member.
*
* DELETED
- The member can no longer participate on the network and all associated resources
* are deleted. Either the Amazon Web Services account that owns the member deleted it, or the member is
* being deleted as the result of an APPROVED
PROPOSAL
to remove the member.
*
* INACCESSIBLE_ENCRYPTION_KEY
- The member is impaired and might not function as expected
* because it cannot access the specified customer managed key in Key Management Service (KMS) for encryption
* at rest. Either the KMS key was disabled or deleted, or the grants on the key were revoked.
*
* The effect of disabling or deleting a key or of revoking a grant isn't immediate. It might take some time * for the member resource to discover that the key is inaccessible. When a resource is in this state, we * recommend deleting and recreating the resource. *
** The status of the member. *
*
* CREATING
- The Amazon Web Services account is in the process of creating a member.
*
* AVAILABLE
- The member has been created and can participate in the network.
*
* CREATE_FAILED
- The Amazon Web Services account attempted to create a member and creation failed.
*
* UPDATING
- The member is in the process of being updated.
*
* DELETING
- The member and all associated resources are in the process of being deleted. Either the
* Amazon Web Services account that owns the member deleted it, or the member is being deleted as the result of an
* APPROVED
PROPOSAL
to remove the member.
*
* DELETED
- The member can no longer participate on the network and all associated resources are
* deleted. Either the Amazon Web Services account that owns the member deleted it, or the member is being deleted
* as the result of an APPROVED
PROPOSAL
to remove the member.
*
* INACCESSIBLE_ENCRYPTION_KEY
- The member is impaired and might not function as expected because it
* cannot access the specified customer managed key in Key Management Service (KMS) for encryption at rest. Either
* the KMS key was disabled or deleted, or the grants on the key were revoked.
*
* The effect of disabling or deleting a key or of revoking a grant isn't immediate. It might take some time for the * member resource to discover that the key is inaccessible. When a resource is in this state, we recommend deleting * and recreating the resource. *
*
* CREATING
- The Amazon Web Services account is in the process of creating a member.
*
* AVAILABLE
- The member has been created and can participate in the network.
*
* CREATE_FAILED
- The Amazon Web Services account attempted to create a member and creation
* failed.
*
* UPDATING
- The member is in the process of being updated.
*
* DELETING
- The member and all associated resources are in the process of being deleted.
* Either the Amazon Web Services account that owns the member deleted it, or the member is being deleted as
* the result of an APPROVED
PROPOSAL
to remove the member.
*
* DELETED
- The member can no longer participate on the network and all associated resources
* are deleted. Either the Amazon Web Services account that owns the member deleted it, or the member is
* being deleted as the result of an APPROVED
PROPOSAL
to remove the member.
*
* INACCESSIBLE_ENCRYPTION_KEY
- The member is impaired and might not function as expected
* because it cannot access the specified customer managed key in Key Management Service (KMS) for encryption
* at rest. Either the KMS key was disabled or deleted, or the grants on the key were revoked.
*
* The effect of disabling or deleting a key or of revoking a grant isn't immediate. It might take some time * for the member resource to discover that the key is inaccessible. When a resource is in this state, we * recommend deleting and recreating the resource. *
** The date and time that the member was created. *
* * @param creationDate * The date and time that the member was created. */ public void setCreationDate(java.util.Date creationDate) { this.creationDate = creationDate; } /** ** The date and time that the member was created. *
* * @return The date and time that the member was created. */ public java.util.Date getCreationDate() { return this.creationDate; } /** ** The date and time that the member was created. *
* * @param creationDate * The date and time that the member was created. * @return Returns a reference to this object so that method calls can be chained together. */ public MemberSummary withCreationDate(java.util.Date creationDate) { setCreationDate(creationDate); return this; } /** ** An indicator of whether the member is owned by your Amazon Web Services account or a different Amazon Web * Services account. *
* * @param isOwned * An indicator of whether the member is owned by your Amazon Web Services account or a different Amazon Web * Services account. */ public void setIsOwned(Boolean isOwned) { this.isOwned = isOwned; } /** ** An indicator of whether the member is owned by your Amazon Web Services account or a different Amazon Web * Services account. *
* * @return An indicator of whether the member is owned by your Amazon Web Services account or a different Amazon Web * Services account. */ public Boolean getIsOwned() { return this.isOwned; } /** ** An indicator of whether the member is owned by your Amazon Web Services account or a different Amazon Web * Services account. *
* * @param isOwned * An indicator of whether the member is owned by your Amazon Web Services account or a different Amazon Web * Services account. * @return Returns a reference to this object so that method calls can be chained together. */ public MemberSummary withIsOwned(Boolean isOwned) { setIsOwned(isOwned); return this; } /** ** An indicator of whether the member is owned by your Amazon Web Services account or a different Amazon Web * Services account. *
* * @return An indicator of whether the member is owned by your Amazon Web Services account or a different Amazon Web * Services account. */ public Boolean isOwned() { return this.isOwned; } /** ** The Amazon Resource Name (ARN) of the member. For more information about ARNs and their format, see Amazon Resource Names * (ARNs) in the Amazon Web Services General Reference. *
* * @param arn * The Amazon Resource Name (ARN) of the member. For more information about ARNs and their format, see Amazon Resource Names * (ARNs) in the Amazon Web Services General Reference. */ public void setArn(String arn) { this.arn = arn; } /** ** The Amazon Resource Name (ARN) of the member. For more information about ARNs and their format, see Amazon Resource Names * (ARNs) in the Amazon Web Services General Reference. *
* * @return The Amazon Resource Name (ARN) of the member. For more information about ARNs and their format, see Amazon Resource Names * (ARNs) in the Amazon Web Services General Reference. */ public String getArn() { return this.arn; } /** ** The Amazon Resource Name (ARN) of the member. For more information about ARNs and their format, see Amazon Resource Names * (ARNs) in the Amazon Web Services General Reference. *
* * @param arn * The Amazon Resource Name (ARN) of the member. For more information about ARNs and their format, see Amazon Resource Names * (ARNs) in the Amazon Web Services General Reference. * @return Returns a reference to this object so that method calls can be chained together. */ public MemberSummary withArn(String arn) { setArn(arn); 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 (getId() != null) sb.append("Id: ").append(getId()).append(","); if (getName() != null) sb.append("Name: ").append(getName()).append(","); if (getDescription() != null) sb.append("Description: ").append(getDescription()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getCreationDate() != null) sb.append("CreationDate: ").append(getCreationDate()).append(","); if (getIsOwned() != null) sb.append("IsOwned: ").append(getIsOwned()).append(","); if (getArn() != null) sb.append("Arn: ").append(getArn()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof MemberSummary == false) return false; MemberSummary other = (MemberSummary) obj; if (other.getId() == null ^ this.getId() == null) return false; if (other.getId() != null && other.getId().equals(this.getId()) == false) return false; if (other.getName() == null ^ this.getName() == null) return false; if (other.getName() != null && other.getName().equals(this.getName()) == false) return false; if (other.getDescription() == null ^ this.getDescription() == null) return false; if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == 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.getCreationDate() == null ^ this.getCreationDate() == null) return false; if (other.getCreationDate() != null && other.getCreationDate().equals(this.getCreationDate()) == false) return false; if (other.getIsOwned() == null ^ this.getIsOwned() == null) return false; if (other.getIsOwned() != null && other.getIsOwned().equals(this.getIsOwned()) == false) return false; if (other.getArn() == null ^ this.getArn() == null) return false; if (other.getArn() != null && other.getArn().equals(this.getArn()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getId() == null) ? 0 : getId().hashCode()); hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getCreationDate() == null) ? 0 : getCreationDate().hashCode()); hashCode = prime * hashCode + ((getIsOwned() == null) ? 0 : getIsOwned().hashCode()); hashCode = prime * hashCode + ((getArn() == null) ? 0 : getArn().hashCode()); return hashCode; } @Override public MemberSummary clone() { try { return (MemberSummary) 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.managedblockchain.model.transform.MemberSummaryMarshaller.getInstance().marshall(this, protocolMarshaller); } }