/* * 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; /** *

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

* */ 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 Ethereum Developer Guide, or 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 Amazon Web Services General Reference. *

*/ private String arn; /** *

* The Amazon Resource Name (ARN) of the customer managed key in Key Management Service (KMS) that the member uses * for encryption at rest. If the value of this parameter is "AWS Owned KMS Key", the member uses an * Amazon Web Services owned KMS key for encryption. This parameter is inherited by the nodes that this member owns. *

*

* For more information, see Encryption at Rest in the Amazon Managed Blockchain Hyperledger Fabric Developer Guide. *

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

* * * @param status * The status of a member.

*