/* * 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.AmazonWebServiceRequest; /** * * @see AWS * API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class CreateNetworkRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* This is a unique, case-sensitive identifier that you provide to ensure the idempotency of the operation. An * idempotent operation completes no more than once. This identifier is required only if you make a service request * directly using an HTTP client. It is generated automatically if you use an Amazon Web Services SDK or the Amazon * Web Services CLI. *
*/ private String clientRequestToken; /** ** The name of the network. *
*/ private String name; /** ** An optional description for the network. *
*/ private String description; /** ** The blockchain framework that the network uses. *
*/ private String framework; /** ** The version of the blockchain framework that the network uses. *
*/ private String frameworkVersion; /** ** Configuration properties of the blockchain framework relevant to the network configuration. *
*/ private NetworkFrameworkConfiguration frameworkConfiguration; /** ** The voting rules used by the network to determine if a proposal is approved. *
*/ private VotingPolicy votingPolicy; /** ** Configuration properties for the first member within the network. *
*/ private MemberConfiguration memberConfiguration; /** ** Tags to assign to the network. *
** Each tag consists of a key and an optional value. You can specify multiple key-value pairs in a single request * with an overall maximum of 50 tags allowed per 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* This is a unique, case-sensitive identifier that you provide to ensure the idempotency of the operation. An * idempotent operation completes no more than once. This identifier is required only if you make a service request * directly using an HTTP client. It is generated automatically if you use an Amazon Web Services SDK or the Amazon * Web Services CLI. *
* * @param clientRequestToken * This is a unique, case-sensitive identifier that you provide to ensure the idempotency of the operation. * An idempotent operation completes no more than once. This identifier is required only if you make a * service request directly using an HTTP client. It is generated automatically if you use an Amazon Web * Services SDK or the Amazon Web Services CLI. */ public void setClientRequestToken(String clientRequestToken) { this.clientRequestToken = clientRequestToken; } /** ** This is a unique, case-sensitive identifier that you provide to ensure the idempotency of the operation. An * idempotent operation completes no more than once. This identifier is required only if you make a service request * directly using an HTTP client. It is generated automatically if you use an Amazon Web Services SDK or the Amazon * Web Services CLI. *
* * @return This is a unique, case-sensitive identifier that you provide to ensure the idempotency of the operation. * An idempotent operation completes no more than once. This identifier is required only if you make a * service request directly using an HTTP client. It is generated automatically if you use an Amazon Web * Services SDK or the Amazon Web Services CLI. */ public String getClientRequestToken() { return this.clientRequestToken; } /** ** This is a unique, case-sensitive identifier that you provide to ensure the idempotency of the operation. An * idempotent operation completes no more than once. This identifier is required only if you make a service request * directly using an HTTP client. It is generated automatically if you use an Amazon Web Services SDK or the Amazon * Web Services CLI. *
* * @param clientRequestToken * This is a unique, case-sensitive identifier that you provide to ensure the idempotency of the operation. * An idempotent operation completes no more than once. This identifier is required only if you make a * service request directly using an HTTP client. It is generated automatically if you use an Amazon Web * Services SDK or the Amazon Web Services CLI. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateNetworkRequest withClientRequestToken(String clientRequestToken) { setClientRequestToken(clientRequestToken); return this; } /** ** The name of the network. *
* * @param name * The name of the network. */ public void setName(String name) { this.name = name; } /** ** The name of the network. *
* * @return The name of the network. */ public String getName() { return this.name; } /** ** The name of the network. *
* * @param name * The name of the network. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateNetworkRequest withName(String name) { setName(name); return this; } /** ** An optional description for the network. *
* * @param description * An optional description for the network. */ public void setDescription(String description) { this.description = description; } /** ** An optional description for the network. *
* * @return An optional description for the network. */ public String getDescription() { return this.description; } /** ** An optional description for the network. *
* * @param description * An optional description for the network. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateNetworkRequest withDescription(String description) { setDescription(description); return this; } /** ** The blockchain framework that the network uses. *
* * @param framework * The blockchain framework that the network uses. * @see Framework */ public void setFramework(String framework) { this.framework = framework; } /** ** The blockchain framework that the network uses. *
* * @return The blockchain framework that the network uses. * @see Framework */ public String getFramework() { return this.framework; } /** ** The blockchain framework that the network uses. *
* * @param framework * The blockchain framework that the network uses. * @return Returns a reference to this object so that method calls can be chained together. * @see Framework */ public CreateNetworkRequest withFramework(String framework) { setFramework(framework); return this; } /** ** The blockchain framework that the network uses. *
* * @param framework * The blockchain framework that the network uses. * @return Returns a reference to this object so that method calls can be chained together. * @see Framework */ public CreateNetworkRequest withFramework(Framework framework) { this.framework = framework.toString(); return this; } /** ** The version of the blockchain framework that the network uses. *
* * @param frameworkVersion * The version of the blockchain framework that the network uses. */ public void setFrameworkVersion(String frameworkVersion) { this.frameworkVersion = frameworkVersion; } /** ** The version of the blockchain framework that the network uses. *
* * @return The version of the blockchain framework that the network uses. */ public String getFrameworkVersion() { return this.frameworkVersion; } /** ** The version of the blockchain framework that the network uses. *
* * @param frameworkVersion * The version of the blockchain framework that the network uses. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateNetworkRequest withFrameworkVersion(String frameworkVersion) { setFrameworkVersion(frameworkVersion); return this; } /** ** Configuration properties of the blockchain framework relevant to the network configuration. *
* * @param frameworkConfiguration * Configuration properties of the blockchain framework relevant to the network configuration. */ public void setFrameworkConfiguration(NetworkFrameworkConfiguration frameworkConfiguration) { this.frameworkConfiguration = frameworkConfiguration; } /** ** Configuration properties of the blockchain framework relevant to the network configuration. *
* * @return Configuration properties of the blockchain framework relevant to the network configuration. */ public NetworkFrameworkConfiguration getFrameworkConfiguration() { return this.frameworkConfiguration; } /** ** Configuration properties of the blockchain framework relevant to the network configuration. *
* * @param frameworkConfiguration * Configuration properties of the blockchain framework relevant to the network configuration. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateNetworkRequest withFrameworkConfiguration(NetworkFrameworkConfiguration frameworkConfiguration) { setFrameworkConfiguration(frameworkConfiguration); return this; } /** ** The voting rules used by the network to determine if a proposal is approved. *
* * @param votingPolicy * The voting rules used by the network to determine if a proposal is approved. */ public void setVotingPolicy(VotingPolicy votingPolicy) { this.votingPolicy = votingPolicy; } /** ** The voting rules used by the network to determine if a proposal is approved. *
* * @return The voting rules used by the network to determine if a proposal is approved. */ public VotingPolicy getVotingPolicy() { return this.votingPolicy; } /** ** The voting rules used by the network to determine if a proposal is approved. *
* * @param votingPolicy * The voting rules used by the network to determine if a proposal is approved. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateNetworkRequest withVotingPolicy(VotingPolicy votingPolicy) { setVotingPolicy(votingPolicy); return this; } /** ** Configuration properties for the first member within the network. *
* * @param memberConfiguration * Configuration properties for the first member within the network. */ public void setMemberConfiguration(MemberConfiguration memberConfiguration) { this.memberConfiguration = memberConfiguration; } /** ** Configuration properties for the first member within the network. *
* * @return Configuration properties for the first member within the network. */ public MemberConfiguration getMemberConfiguration() { return this.memberConfiguration; } /** ** Configuration properties for the first member within the network. *
* * @param memberConfiguration * Configuration properties for the first member within the network. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateNetworkRequest withMemberConfiguration(MemberConfiguration memberConfiguration) { setMemberConfiguration(memberConfiguration); return this; } /** ** Tags to assign to the network. *
** Each tag consists of a key and an optional value. You can specify multiple key-value pairs in a single request * with an overall maximum of 50 tags allowed per 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 to assign to the network. ** Each tag consists of a key and an optional value. You can specify multiple key-value pairs in a single * request with an overall maximum of 50 tags allowed per 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
* Tags to assign to the network.
*
* Each tag consists of a key and an optional value. You can specify multiple key-value pairs in a single request
* with an overall maximum of 50 tags allowed per 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.
*
* Each tag consists of a key and an optional value. You can specify multiple key-value pairs in a single * request with an overall maximum of 50 tags allowed per 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 to assign to the network.
*
* Each tag consists of a key and an optional value. You can specify multiple key-value pairs in a single request
* with an overall maximum of 50 tags allowed per 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.
*
* Each tag consists of a key and an optional value. You can specify multiple key-value pairs in a single * request with an overall maximum of 50 tags allowed per 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 CreateNetworkRequest withTags(java.util.Map