
com.amazonaws.services.managedblockchain.model.Member Maven / Gradle / Ivy
/*
* Copyright 2017-2022 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;
/**
*
* Member configuration properties.
*
*
* Applies only to Hyperledger Fabric.
*
*
* @see AWS API
* Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class Member implements Serializable, Cloneable, StructuredPojo {
/**
*
* The unique identifier of the network to which the member belongs.
*
*/
private String networkId;
/**
*
* The unique identifier of the member.
*
*/
private String id;
/**
*
* The name of the member.
*
*/
private String name;
/**
*
* An optional description for the member.
*
*/
private String description;
/**
*
* Attributes relevant to a member for the blockchain framework that the Managed Blockchain network uses.
*
*/
private MemberFrameworkAttributes frameworkAttributes;
/**
*
* Configuration properties for logging events associated with a member.
*
*/
private MemberLogPublishingConfiguration logPublishingConfiguration;
/**
*
* The status of a member.
*
*
* -
*
* CREATING
- The AWS account is in the process of creating a member.
*
*
* -
*
* AVAILABLE
- The member has been created and can participate in the network.
*
*
* -
*
* CREATE_FAILED
- The AWS 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
* AWS 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 AWS 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 AWS 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 revoking a grant is not immediate. The member resource might take
* some time to find that the key is inaccessible. When a resource is in this state, we recommend deleting and
* recreating the resource.
*
*
*
*/
private String status;
/**
*
* The date and time that the member was created.
*
*/
private java.util.Date creationDate;
/**
*
* Tags assigned to the member. Tags consist of a key and optional value. For more information about tags, see Tagging
* Resources in the Amazon Managed Blockchain Hyperledger Fabric Developer Guide.
*
*/
private java.util.Map tags;
/**
*
* The Amazon Resource Name (ARN) of the member. For more information about ARNs and their format, see Amazon Resource Names
* (ARNs) in the AWS General Reference.
*
*/
private String arn;
/**
*
* The Amazon Resource Name (ARN) of the customer managed key in AWS Key Management Service (AWS KMS) that the
* member uses for encryption at rest. If the value of this parameter is "AWS Owned KMS Key"
, the
* member uses an AWS owned KMS key for encryption. This parameter is inherited by the nodes that this member owns.
*
*/
private String kmsKeyArn;
/**
*
* The unique identifier of the network to which the member belongs.
*
*
* @param networkId
* The unique identifier of the network to which the member belongs.
*/
public void setNetworkId(String networkId) {
this.networkId = networkId;
}
/**
*
* The unique identifier of the network to which the member belongs.
*
*
* @return The unique identifier of the network to which the member belongs.
*/
public String getNetworkId() {
return this.networkId;
}
/**
*
* The unique identifier of the network to which the member belongs.
*
*
* @param networkId
* The unique identifier of the network to which the member belongs.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Member withNetworkId(String networkId) {
setNetworkId(networkId);
return this;
}
/**
*
* 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 Member 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 Member withName(String name) {
setName(name);
return this;
}
/**
*
* An optional description for the member.
*
*
* @param description
* An optional description for the member.
*/
public void setDescription(String description) {
this.description = description;
}
/**
*
* An optional description for the member.
*
*
* @return An optional description for the member.
*/
public String getDescription() {
return this.description;
}
/**
*
* An optional description for the member.
*
*
* @param description
* An optional description for the member.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Member withDescription(String description) {
setDescription(description);
return this;
}
/**
*
* Attributes relevant to a member for the blockchain framework that the Managed Blockchain network uses.
*
*
* @param frameworkAttributes
* Attributes relevant to a member for the blockchain framework that the Managed Blockchain network uses.
*/
public void setFrameworkAttributes(MemberFrameworkAttributes frameworkAttributes) {
this.frameworkAttributes = frameworkAttributes;
}
/**
*
* Attributes relevant to a member for the blockchain framework that the Managed Blockchain network uses.
*
*
* @return Attributes relevant to a member for the blockchain framework that the Managed Blockchain network uses.
*/
public MemberFrameworkAttributes getFrameworkAttributes() {
return this.frameworkAttributes;
}
/**
*
* Attributes relevant to a member for the blockchain framework that the Managed Blockchain network uses.
*
*
* @param frameworkAttributes
* Attributes relevant to a member for the blockchain framework that the Managed Blockchain network uses.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Member withFrameworkAttributes(MemberFrameworkAttributes frameworkAttributes) {
setFrameworkAttributes(frameworkAttributes);
return this;
}
/**
*
* Configuration properties for logging events associated with a member.
*
*
* @param logPublishingConfiguration
* Configuration properties for logging events associated with a member.
*/
public void setLogPublishingConfiguration(MemberLogPublishingConfiguration logPublishingConfiguration) {
this.logPublishingConfiguration = logPublishingConfiguration;
}
/**
*
* Configuration properties for logging events associated with a member.
*
*
* @return Configuration properties for logging events associated with a member.
*/
public MemberLogPublishingConfiguration getLogPublishingConfiguration() {
return this.logPublishingConfiguration;
}
/**
*
* Configuration properties for logging events associated with a member.
*
*
* @param logPublishingConfiguration
* Configuration properties for logging events associated with a member.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Member withLogPublishingConfiguration(MemberLogPublishingConfiguration logPublishingConfiguration) {
setLogPublishingConfiguration(logPublishingConfiguration);
return this;
}
/**
*
* The status of a member.
*
*
* -
*
* CREATING
- The AWS account is in the process of creating a member.
*
*
* -
*
* AVAILABLE
- The member has been created and can participate in the network.
*
*
* -
*
* CREATE_FAILED
- The AWS 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
* AWS 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 AWS 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 AWS 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 revoking a grant is not immediate. The member resource might take
* some time to find that the key is inaccessible. When a resource is in this state, we recommend deleting and
* recreating the resource.
*
*
*
*
* @param status
* The status of a member.
*
* -
*
* CREATING
- The AWS account is in the process of creating a member.
*
*
* -
*
* AVAILABLE
- The member has been created and can participate in the network.
*
*
* -
*
* CREATE_FAILED
- The AWS 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 AWS 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 AWS 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 AWS 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 revoking a grant is not immediate. The member resource might
* take some time to find that the key is inaccessible. When a resource is in this state, we recommend
* deleting and recreating the resource.
*
*
* @see MemberStatus
*/
public void setStatus(String status) {
this.status = status;
}
/**
*
* The status of a member.
*
*
* -
*
* CREATING
- The AWS account is in the process of creating a member.
*
*
* -
*
* AVAILABLE
- The member has been created and can participate in the network.
*
*
* -
*
* CREATE_FAILED
- The AWS 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
* AWS 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 AWS 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 AWS 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 revoking a grant is not immediate. The member resource might take
* some time to find that the key is inaccessible. When a resource is in this state, we recommend deleting and
* recreating the resource.
*
*
*
*
* @return The status of a member.
*
* -
*
* CREATING
- The AWS account is in the process of creating a member.
*
*
* -
*
* AVAILABLE
- The member has been created and can participate in the network.
*
*
* -
*
* CREATE_FAILED
- The AWS 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 AWS 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 AWS 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 AWS 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 revoking a grant is not immediate. The member resource
* might take some time to find that the key is inaccessible. When a resource is in this state, we recommend
* deleting and recreating the resource.
*
*
* @see MemberStatus
*/
public String getStatus() {
return this.status;
}
/**
*
* The status of a member.
*
*
* -
*
* CREATING
- The AWS account is in the process of creating a member.
*
*
* -
*
* AVAILABLE
- The member has been created and can participate in the network.
*
*
* -
*
* CREATE_FAILED
- The AWS 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
* AWS 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 AWS 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 AWS 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 revoking a grant is not immediate. The member resource might take
* some time to find that the key is inaccessible. When a resource is in this state, we recommend deleting and
* recreating the resource.
*
*
*
*
* @param status
* The status of a member.
*
* -
*
* CREATING
- The AWS account is in the process of creating a member.
*
*
* -
*
* AVAILABLE
- The member has been created and can participate in the network.
*
*
* -
*
* CREATE_FAILED
- The AWS 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 AWS 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 AWS 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 AWS 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 revoking a grant is not immediate. The member resource might
* take some time to find that the key is inaccessible. When a resource is in this state, we recommend
* deleting and recreating the resource.
*
*
* @return Returns a reference to this object so that method calls can be chained together.
* @see MemberStatus
*/
public Member withStatus(String status) {
setStatus(status);
return this;
}
/**
*
* The status of a member.
*
*
* -
*
* CREATING
- The AWS account is in the process of creating a member.
*
*
* -
*
* AVAILABLE
- The member has been created and can participate in the network.
*
*
* -
*
* CREATE_FAILED
- The AWS 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
* AWS 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 AWS 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 AWS 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 revoking a grant is not immediate. The member resource might take
* some time to find that the key is inaccessible. When a resource is in this state, we recommend deleting and
* recreating the resource.
*
*
*
*
* @param status
* The status of a member.
*
* -
*
* CREATING
- The AWS account is in the process of creating a member.
*
*
* -
*
* AVAILABLE
- The member has been created and can participate in the network.
*
*
* -
*
* CREATE_FAILED
- The AWS 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 AWS 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 AWS 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 AWS 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 revoking a grant is not immediate. The member resource might
* take some time to find that the key is inaccessible. When a resource is in this state, we recommend
* deleting and recreating the resource.
*
*
* @return Returns a reference to this object so that method calls can be chained together.
* @see MemberStatus
*/
public Member withStatus(MemberStatus status) {
this.status = status.toString();
return this;
}
/**
*
* 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 Member withCreationDate(java.util.Date creationDate) {
setCreationDate(creationDate);
return this;
}
/**
*
* Tags assigned to the member. Tags consist of a key and optional value. For more information about tags, see Tagging
* Resources in the Amazon Managed Blockchain Hyperledger Fabric Developer Guide.
*
*
* @return Tags assigned to the member. Tags consist of a key and optional value. For more information about tags,
* see Tagging Resources in the Amazon Managed Blockchain Hyperledger Fabric Developer Guide.
*/
public java.util.Map getTags() {
return tags;
}
/**
*
* Tags assigned to the member. Tags consist of a key and optional value. For more information about tags, see Tagging
* Resources in the Amazon Managed Blockchain Hyperledger Fabric Developer Guide.
*
*
* @param tags
* Tags assigned to the member. Tags consist of a key and optional value. For more information about tags,
* see Tagging Resources in the Amazon Managed Blockchain Hyperledger Fabric Developer Guide.
*/
public void setTags(java.util.Map tags) {
this.tags = tags;
}
/**
*
* Tags assigned to the member. Tags consist of a key and optional value. For more information about tags, see Tagging
* Resources in the Amazon Managed Blockchain Hyperledger Fabric Developer Guide.
*
*
* @param tags
* Tags assigned to the member. Tags consist of a key and optional value. For more information about tags,
* see Tagging Resources in the Amazon Managed Blockchain Hyperledger Fabric Developer Guide.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Member withTags(java.util.Map tags) {
setTags(tags);
return this;
}
/**
* Add a single Tags entry
*
* @see Member#withTags
* @returns a reference to this object so that method calls can be chained together.
*/
public Member addTagsEntry(String key, String value) {
if (null == this.tags) {
this.tags = new java.util.HashMap();
}
if (this.tags.containsKey(key))
throw new IllegalArgumentException("Duplicated keys (" + key.toString() + ") are provided.");
this.tags.put(key, value);
return this;
}
/**
* Removes all the entries added into Tags.
*
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Member clearTagsEntries() {
this.tags = null;
return this;
}
/**
*
* The Amazon Resource Name (ARN) of the member. For more information about ARNs and their format, see Amazon Resource Names
* (ARNs) in the AWS 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 AWS 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 AWS 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 AWS 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 AWS 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 AWS General Reference.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Member withArn(String arn) {
setArn(arn);
return this;
}
/**
*
* The Amazon Resource Name (ARN) of the customer managed key in AWS Key Management Service (AWS KMS) that the
* member uses for encryption at rest. If the value of this parameter is "AWS Owned KMS Key"
, the
* member uses an AWS owned KMS key for encryption. This parameter is inherited by the nodes that this member owns.
*
*
* @param kmsKeyArn
* The Amazon Resource Name (ARN) of the customer managed key in AWS Key Management Service (AWS KMS) that
* the member uses for encryption at rest. If the value of this parameter is "AWS Owned KMS Key"
* , the member uses an AWS owned KMS key for encryption. This parameter is inherited by the nodes that this
* member owns.
*/
public void setKmsKeyArn(String kmsKeyArn) {
this.kmsKeyArn = kmsKeyArn;
}
/**
*
* The Amazon Resource Name (ARN) of the customer managed key in AWS Key Management Service (AWS KMS) that the
* member uses for encryption at rest. If the value of this parameter is "AWS Owned KMS Key"
, the
* member uses an AWS owned KMS key for encryption. This parameter is inherited by the nodes that this member owns.
*
*
* @return The Amazon Resource Name (ARN) of the customer managed key in AWS Key Management Service (AWS KMS) that
* the member uses for encryption at rest. If the value of this parameter is
* "AWS Owned KMS Key"
, the member uses an AWS owned KMS key for encryption. This parameter is
* inherited by the nodes that this member owns.
*/
public String getKmsKeyArn() {
return this.kmsKeyArn;
}
/**
*
* The Amazon Resource Name (ARN) of the customer managed key in AWS Key Management Service (AWS KMS) that the
* member uses for encryption at rest. If the value of this parameter is "AWS Owned KMS Key"
, the
* member uses an AWS owned KMS key for encryption. This parameter is inherited by the nodes that this member owns.
*
*
* @param kmsKeyArn
* The Amazon Resource Name (ARN) of the customer managed key in AWS Key Management Service (AWS KMS) that
* the member uses for encryption at rest. If the value of this parameter is "AWS Owned KMS Key"
* , the member uses an AWS owned KMS key for encryption. This parameter is inherited by the nodes that this
* member owns.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Member withKmsKeyArn(String kmsKeyArn) {
setKmsKeyArn(kmsKeyArn);
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 (getNetworkId() != null)
sb.append("NetworkId: ").append(getNetworkId()).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 (getFrameworkAttributes() != null)
sb.append("FrameworkAttributes: ").append(getFrameworkAttributes()).append(",");
if (getLogPublishingConfiguration() != null)
sb.append("LogPublishingConfiguration: ").append(getLogPublishingConfiguration()).append(",");
if (getStatus() != null)
sb.append("Status: ").append(getStatus()).append(",");
if (getCreationDate() != null)
sb.append("CreationDate: ").append(getCreationDate()).append(",");
if (getTags() != null)
sb.append("Tags: ").append(getTags()).append(",");
if (getArn() != null)
sb.append("Arn: ").append(getArn()).append(",");
if (getKmsKeyArn() != null)
sb.append("KmsKeyArn: ").append(getKmsKeyArn());
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.getNetworkId() == null ^ this.getNetworkId() == null)
return false;
if (other.getNetworkId() != null && other.getNetworkId().equals(this.getNetworkId()) == false)
return false;
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.getFrameworkAttributes() == null ^ this.getFrameworkAttributes() == null)
return false;
if (other.getFrameworkAttributes() != null && other.getFrameworkAttributes().equals(this.getFrameworkAttributes()) == false)
return false;
if (other.getLogPublishingConfiguration() == null ^ this.getLogPublishingConfiguration() == null)
return false;
if (other.getLogPublishingConfiguration() != null && other.getLogPublishingConfiguration().equals(this.getLogPublishingConfiguration()) == 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.getTags() == null ^ this.getTags() == null)
return false;
if (other.getTags() != null && other.getTags().equals(this.getTags()) == false)
return false;
if (other.getArn() == null ^ this.getArn() == null)
return false;
if (other.getArn() != null && other.getArn().equals(this.getArn()) == false)
return false;
if (other.getKmsKeyArn() == null ^ this.getKmsKeyArn() == null)
return false;
if (other.getKmsKeyArn() != null && other.getKmsKeyArn().equals(this.getKmsKeyArn()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getNetworkId() == null) ? 0 : getNetworkId().hashCode());
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 + ((getFrameworkAttributes() == null) ? 0 : getFrameworkAttributes().hashCode());
hashCode = prime * hashCode + ((getLogPublishingConfiguration() == null) ? 0 : getLogPublishingConfiguration().hashCode());
hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode());
hashCode = prime * hashCode + ((getCreationDate() == null) ? 0 : getCreationDate().hashCode());
hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode());
hashCode = prime * hashCode + ((getArn() == null) ? 0 : getArn().hashCode());
hashCode = prime * hashCode + ((getKmsKeyArn() == null) ? 0 : getKmsKeyArn().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.managedblockchain.model.transform.MemberMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}