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

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

* The unique identifier of the network that the node is on. *

*/ private String networkId; /** *

* The unique identifier of the member to which the node belongs. *

*

* Applies only to Hyperledger Fabric. *

*/ private String memberId; /** *

* The unique identifier of the node. *

*/ private String id; /** *

* The instance type of the node. *

*/ private String instanceType; /** *

* The Availability Zone in which the node exists. Required for Ethereum nodes. *

*/ private String availabilityZone; /** *

* Attributes of the blockchain framework being used. *

*/ private NodeFrameworkAttributes frameworkAttributes; /** *

* Configuration properties for logging events associated with a peer node on a Hyperledger Fabric network on * Managed Blockchain. *

*/ private NodeLogPublishingConfiguration logPublishingConfiguration; /** *

* The state database that the node uses. Values are LevelDB or CouchDB. *

*

* Applies only to Hyperledger Fabric. *

*/ private String stateDB; /** *

* The status of the node. *

* */ private String status; /** *

* The date and time that the node was created. *

*/ private java.util.Date creationDate; /** *

* Tags assigned to the node. Each tag consists 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 node. 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 node uses for * encryption at rest. If the value of this parameter is "AWS Owned KMS Key", the node uses an Amazon * Web Services owned KMS key for encryption. The node inherits this parameter from the member that it belongs to. *

*

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

*

* Applies only to Hyperledger Fabric. *

*/ private String kmsKeyArn; /** *

* The unique identifier of the network that the node is on. *

* * @param networkId * The unique identifier of the network that the node is on. */ public void setNetworkId(String networkId) { this.networkId = networkId; } /** *

* The unique identifier of the network that the node is on. *

* * @return The unique identifier of the network that the node is on. */ public String getNetworkId() { return this.networkId; } /** *

* The unique identifier of the network that the node is on. *

* * @param networkId * The unique identifier of the network that the node is on. * @return Returns a reference to this object so that method calls can be chained together. */ public Node withNetworkId(String networkId) { setNetworkId(networkId); return this; } /** *

* The unique identifier of the member to which the node belongs. *

*

* Applies only to Hyperledger Fabric. *

* * @param memberId * The unique identifier of the member to which the node belongs.

*

* Applies only to Hyperledger Fabric. */ public void setMemberId(String memberId) { this.memberId = memberId; } /** *

* The unique identifier of the member to which the node belongs. *

*

* Applies only to Hyperledger Fabric. *

* * @return The unique identifier of the member to which the node belongs.

*

* Applies only to Hyperledger Fabric. */ public String getMemberId() { return this.memberId; } /** *

* The unique identifier of the member to which the node belongs. *

*

* Applies only to Hyperledger Fabric. *

* * @param memberId * The unique identifier of the member to which the node belongs.

*

* Applies only to Hyperledger Fabric. * @return Returns a reference to this object so that method calls can be chained together. */ public Node withMemberId(String memberId) { setMemberId(memberId); return this; } /** *

* The unique identifier of the node. *

* * @param id * The unique identifier of the node. */ public void setId(String id) { this.id = id; } /** *

* The unique identifier of the node. *

* * @return The unique identifier of the node. */ public String getId() { return this.id; } /** *

* The unique identifier of the node. *

* * @param id * The unique identifier of the node. * @return Returns a reference to this object so that method calls can be chained together. */ public Node withId(String id) { setId(id); return this; } /** *

* The instance type of the node. *

* * @param instanceType * The instance type of the node. */ public void setInstanceType(String instanceType) { this.instanceType = instanceType; } /** *

* The instance type of the node. *

* * @return The instance type of the node. */ public String getInstanceType() { return this.instanceType; } /** *

* The instance type of the node. *

* * @param instanceType * The instance type of the node. * @return Returns a reference to this object so that method calls can be chained together. */ public Node withInstanceType(String instanceType) { setInstanceType(instanceType); return this; } /** *

* The Availability Zone in which the node exists. Required for Ethereum nodes. *

* * @param availabilityZone * The Availability Zone in which the node exists. Required for Ethereum nodes. */ public void setAvailabilityZone(String availabilityZone) { this.availabilityZone = availabilityZone; } /** *

* The Availability Zone in which the node exists. Required for Ethereum nodes. *

* * @return The Availability Zone in which the node exists. Required for Ethereum nodes. */ public String getAvailabilityZone() { return this.availabilityZone; } /** *

* The Availability Zone in which the node exists. Required for Ethereum nodes. *

* * @param availabilityZone * The Availability Zone in which the node exists. Required for Ethereum nodes. * @return Returns a reference to this object so that method calls can be chained together. */ public Node withAvailabilityZone(String availabilityZone) { setAvailabilityZone(availabilityZone); return this; } /** *

* Attributes of the blockchain framework being used. *

* * @param frameworkAttributes * Attributes of the blockchain framework being used. */ public void setFrameworkAttributes(NodeFrameworkAttributes frameworkAttributes) { this.frameworkAttributes = frameworkAttributes; } /** *

* Attributes of the blockchain framework being used. *

* * @return Attributes of the blockchain framework being used. */ public NodeFrameworkAttributes getFrameworkAttributes() { return this.frameworkAttributes; } /** *

* Attributes of the blockchain framework being used. *

* * @param frameworkAttributes * Attributes of the blockchain framework being used. * @return Returns a reference to this object so that method calls can be chained together. */ public Node withFrameworkAttributes(NodeFrameworkAttributes frameworkAttributes) { setFrameworkAttributes(frameworkAttributes); return this; } /** *

* Configuration properties for logging events associated with a peer node on a Hyperledger Fabric network on * Managed Blockchain. *

* * @param logPublishingConfiguration * Configuration properties for logging events associated with a peer node on a Hyperledger Fabric network on * Managed Blockchain. */ public void setLogPublishingConfiguration(NodeLogPublishingConfiguration logPublishingConfiguration) { this.logPublishingConfiguration = logPublishingConfiguration; } /** *

* Configuration properties for logging events associated with a peer node on a Hyperledger Fabric network on * Managed Blockchain. *

* * @return Configuration properties for logging events associated with a peer node on a Hyperledger Fabric network * on Managed Blockchain. */ public NodeLogPublishingConfiguration getLogPublishingConfiguration() { return this.logPublishingConfiguration; } /** *

* Configuration properties for logging events associated with a peer node on a Hyperledger Fabric network on * Managed Blockchain. *

* * @param logPublishingConfiguration * Configuration properties for logging events associated with a peer node on a Hyperledger Fabric network on * Managed Blockchain. * @return Returns a reference to this object so that method calls can be chained together. */ public Node withLogPublishingConfiguration(NodeLogPublishingConfiguration logPublishingConfiguration) { setLogPublishingConfiguration(logPublishingConfiguration); return this; } /** *

* The state database that the node uses. Values are LevelDB or CouchDB. *

*

* Applies only to Hyperledger Fabric. *

* * @param stateDB * The state database that the node uses. Values are LevelDB or CouchDB.

*

* Applies only to Hyperledger Fabric. * @see StateDBType */ public void setStateDB(String stateDB) { this.stateDB = stateDB; } /** *

* The state database that the node uses. Values are LevelDB or CouchDB. *

*

* Applies only to Hyperledger Fabric. *

* * @return The state database that the node uses. Values are LevelDB or CouchDB.

*

* Applies only to Hyperledger Fabric. * @see StateDBType */ public String getStateDB() { return this.stateDB; } /** *

* The state database that the node uses. Values are LevelDB or CouchDB. *

*

* Applies only to Hyperledger Fabric. *

* * @param stateDB * The state database that the node uses. Values are LevelDB or CouchDB.

*

* Applies only to Hyperledger Fabric. * @return Returns a reference to this object so that method calls can be chained together. * @see StateDBType */ public Node withStateDB(String stateDB) { setStateDB(stateDB); return this; } /** *

* The state database that the node uses. Values are LevelDB or CouchDB. *

*

* Applies only to Hyperledger Fabric. *

* * @param stateDB * The state database that the node uses. Values are LevelDB or CouchDB.

*

* Applies only to Hyperledger Fabric. * @return Returns a reference to this object so that method calls can be chained together. * @see StateDBType */ public Node withStateDB(StateDBType stateDB) { this.stateDB = stateDB.toString(); return this; } /** *

* The status of the node. *

* * * @param status * The status of the node.

*