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

* Configuration properties of the member. *

*

* Applies only to Hyperledger Fabric. *

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

* The name of the member. *

*/ private String name; /** *

* An optional description of the member. *

*/ private String description; /** *

* Configuration properties of the blockchain framework relevant to the member. *

*/ private MemberFrameworkConfiguration frameworkConfiguration; /** *

* Configuration properties for logging events associated with a member of a Managed Blockchain network. *

*/ private MemberLogPublishingConfiguration logPublishingConfiguration; /** *

* Tags assigned to the member. Tags consist of a key and optional value. *

*

* When specifying tags during creation, you can specify multiple key-value pairs in a single request, with an * overall maximum of 50 tags added to each resource. *

*

* 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 customer managed key in Key Management Service (KMS) to use for encryption * at rest in the member. This parameter is inherited by any nodes that this member creates. For more information, * see Encryption at Rest in the Amazon Managed Blockchain Hyperledger Fabric Developer Guide. *

*

* Use one of the following options to specify this parameter: *

* */ private String kmsKeyArn; /** *

* 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 MemberConfiguration 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 MemberConfiguration withDescription(String description) { setDescription(description); return this; } /** *

* Configuration properties of the blockchain framework relevant to the member. *

* * @param frameworkConfiguration * Configuration properties of the blockchain framework relevant to the member. */ public void setFrameworkConfiguration(MemberFrameworkConfiguration frameworkConfiguration) { this.frameworkConfiguration = frameworkConfiguration; } /** *

* Configuration properties of the blockchain framework relevant to the member. *

* * @return Configuration properties of the blockchain framework relevant to the member. */ public MemberFrameworkConfiguration getFrameworkConfiguration() { return this.frameworkConfiguration; } /** *

* Configuration properties of the blockchain framework relevant to the member. *

* * @param frameworkConfiguration * Configuration properties of the blockchain framework relevant to the member. * @return Returns a reference to this object so that method calls can be chained together. */ public MemberConfiguration withFrameworkConfiguration(MemberFrameworkConfiguration frameworkConfiguration) { setFrameworkConfiguration(frameworkConfiguration); return this; } /** *

* Configuration properties for logging events associated with a member of a Managed Blockchain network. *

* * @param logPublishingConfiguration * Configuration properties for logging events associated with a member of a Managed Blockchain network. */ public void setLogPublishingConfiguration(MemberLogPublishingConfiguration logPublishingConfiguration) { this.logPublishingConfiguration = logPublishingConfiguration; } /** *

* Configuration properties for logging events associated with a member of a Managed Blockchain network. *

* * @return Configuration properties for logging events associated with a member of a Managed Blockchain network. */ public MemberLogPublishingConfiguration getLogPublishingConfiguration() { return this.logPublishingConfiguration; } /** *

* Configuration properties for logging events associated with a member of a Managed Blockchain network. *

* * @param logPublishingConfiguration * Configuration properties for logging events associated with a member of a Managed Blockchain network. * @return Returns a reference to this object so that method calls can be chained together. */ public MemberConfiguration withLogPublishingConfiguration(MemberLogPublishingConfiguration logPublishingConfiguration) { setLogPublishingConfiguration(logPublishingConfiguration); return this; } /** *

* Tags assigned to the member. Tags consist of a key and optional value. *

*

* When specifying tags during creation, you can specify multiple key-value pairs in a single request, with an * overall maximum of 50 tags added to each resource. *

*

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

* * @return Tags assigned to the member. Tags consist of a key and optional value.

*

* When specifying tags during creation, you can specify multiple key-value pairs in a single request, with * an overall maximum of 50 tags added to each resource. *

*

* 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. */ public java.util.Map getTags() { return tags; } /** *

* Tags assigned to the member. Tags consist of a key and optional value. *

*

* When specifying tags during creation, you can specify multiple key-value pairs in a single request, with an * overall maximum of 50 tags added to each resource. *

*

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

* * @param tags * Tags assigned to the member. Tags consist of a key and optional value.

*

* When specifying tags during creation, you can specify multiple key-value pairs in a single request, with * an overall maximum of 50 tags added to each resource. *

*

* 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. */ public void setTags(java.util.Map tags) { this.tags = tags; } /** *

* Tags assigned to the member. Tags consist of a key and optional value. *

*

* When specifying tags during creation, you can specify multiple key-value pairs in a single request, with an * overall maximum of 50 tags added to each resource. *

*

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

* * @param tags * Tags assigned to the member. Tags consist of a key and optional value.

*

* When specifying tags during creation, you can specify multiple key-value pairs in a single request, with * an overall maximum of 50 tags added to each resource. *

*

* 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. * @return Returns a reference to this object so that method calls can be chained together. */ public MemberConfiguration withTags(java.util.Map tags) { setTags(tags); return this; } /** * Add a single Tags entry * * @see MemberConfiguration#withTags * @returns a reference to this object so that method calls can be chained together. */ public MemberConfiguration 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 MemberConfiguration clearTagsEntries() { this.tags = null; return this; } /** *

* The Amazon Resource Name (ARN) of the customer managed key in Key Management Service (KMS) to use for encryption * at rest in the member. This parameter is inherited by any nodes that this member creates. For more information, * see Encryption at Rest in the Amazon Managed Blockchain Hyperledger Fabric Developer Guide. *

*

* Use one of the following options to specify this parameter: *

* * * @param kmsKeyArn * The Amazon Resource Name (ARN) of the customer managed key in Key Management Service (KMS) to use for * encryption at rest in the member. This parameter is inherited by any nodes that this member creates. For * more information, see Encryption at Rest in the Amazon Managed Blockchain Hyperledger Fabric Developer Guide.

*

* Use one of the following options to specify this parameter: *

*