@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class NodeConfiguration extends Object implements Serializable, Cloneable, StructuredPojo
Configuration properties of a node.
Constructor and Description |
---|
NodeConfiguration() |
Modifier and Type | Method and Description |
---|---|
NodeConfiguration |
clone() |
boolean |
equals(Object obj) |
String |
getAvailabilityZone()
The Availability Zone in which the node exists.
|
String |
getInstanceType()
The Amazon Managed Blockchain instance type for the node.
|
NodeLogPublishingConfiguration |
getLogPublishingConfiguration()
Configuration properties for logging events associated with a peer node on a Hyperledger Fabric network on
Managed Blockchain.
|
String |
getStateDB()
The state database that the node uses.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAvailabilityZone(String availabilityZone)
The Availability Zone in which the node exists.
|
void |
setInstanceType(String instanceType)
The Amazon Managed Blockchain instance type for the node.
|
void |
setLogPublishingConfiguration(NodeLogPublishingConfiguration logPublishingConfiguration)
Configuration properties for logging events associated with a peer node on a Hyperledger Fabric network on
Managed Blockchain.
|
void |
setStateDB(String stateDB)
The state database that the node uses.
|
String |
toString()
Returns a string representation of this object.
|
NodeConfiguration |
withAvailabilityZone(String availabilityZone)
The Availability Zone in which the node exists.
|
NodeConfiguration |
withInstanceType(String instanceType)
The Amazon Managed Blockchain instance type for the node.
|
NodeConfiguration |
withLogPublishingConfiguration(NodeLogPublishingConfiguration logPublishingConfiguration)
Configuration properties for logging events associated with a peer node on a Hyperledger Fabric network on
Managed Blockchain.
|
NodeConfiguration |
withStateDB(StateDBType stateDB)
The state database that the node uses.
|
NodeConfiguration |
withStateDB(String stateDB)
The state database that the node uses.
|
public void setInstanceType(String instanceType)
The Amazon Managed Blockchain instance type for the node.
instanceType
- The Amazon Managed Blockchain instance type for the node.public String getInstanceType()
The Amazon Managed Blockchain instance type for the node.
public NodeConfiguration withInstanceType(String instanceType)
The Amazon Managed Blockchain instance type for the node.
instanceType
- The Amazon Managed Blockchain instance type for the node.public void setAvailabilityZone(String availabilityZone)
The Availability Zone in which the node exists. Required for Ethereum nodes.
availabilityZone
- The Availability Zone in which the node exists. Required for Ethereum nodes.public String getAvailabilityZone()
The Availability Zone in which the node exists. Required for Ethereum nodes.
public NodeConfiguration withAvailabilityZone(String availabilityZone)
The Availability Zone in which the node exists. Required for Ethereum nodes.
availabilityZone
- The Availability Zone in which the node exists. Required for Ethereum nodes.public void setLogPublishingConfiguration(NodeLogPublishingConfiguration logPublishingConfiguration)
Configuration properties for logging events associated with a peer node on a Hyperledger Fabric network on Managed Blockchain.
logPublishingConfiguration
- Configuration properties for logging events associated with a peer node on a Hyperledger Fabric network on
Managed Blockchain.public NodeLogPublishingConfiguration getLogPublishingConfiguration()
Configuration properties for logging events associated with a peer node on a Hyperledger Fabric network on Managed Blockchain.
public NodeConfiguration withLogPublishingConfiguration(NodeLogPublishingConfiguration logPublishingConfiguration)
Configuration properties for logging events associated with a peer node on a Hyperledger Fabric network on Managed Blockchain.
logPublishingConfiguration
- Configuration properties for logging events associated with a peer node on a Hyperledger Fabric network on
Managed Blockchain.public void setStateDB(String stateDB)
The state database that the node uses. Values are LevelDB
or CouchDB
. When using an
Amazon Managed Blockchain network with Hyperledger Fabric version 1.4 or later, the default is
CouchDB
.
Applies only to Hyperledger Fabric.
stateDB
- The state database that the node uses. Values are LevelDB
or CouchDB
. When using
an Amazon Managed Blockchain network with Hyperledger Fabric version 1.4 or later, the default is
CouchDB
.
Applies only to Hyperledger Fabric.
StateDBType
public String getStateDB()
The state database that the node uses. Values are LevelDB
or CouchDB
. When using an
Amazon Managed Blockchain network with Hyperledger Fabric version 1.4 or later, the default is
CouchDB
.
Applies only to Hyperledger Fabric.
LevelDB
or CouchDB
. When
using an Amazon Managed Blockchain network with Hyperledger Fabric version 1.4 or later, the default is
CouchDB
.
Applies only to Hyperledger Fabric.
StateDBType
public NodeConfiguration withStateDB(String stateDB)
The state database that the node uses. Values are LevelDB
or CouchDB
. When using an
Amazon Managed Blockchain network with Hyperledger Fabric version 1.4 or later, the default is
CouchDB
.
Applies only to Hyperledger Fabric.
stateDB
- The state database that the node uses. Values are LevelDB
or CouchDB
. When using
an Amazon Managed Blockchain network with Hyperledger Fabric version 1.4 or later, the default is
CouchDB
.
Applies only to Hyperledger Fabric.
StateDBType
public NodeConfiguration withStateDB(StateDBType stateDB)
The state database that the node uses. Values are LevelDB
or CouchDB
. When using an
Amazon Managed Blockchain network with Hyperledger Fabric version 1.4 or later, the default is
CouchDB
.
Applies only to Hyperledger Fabric.
stateDB
- The state database that the node uses. Values are LevelDB
or CouchDB
. When using
an Amazon Managed Blockchain network with Hyperledger Fabric version 1.4 or later, the default is
CouchDB
.
Applies only to Hyperledger Fabric.
StateDBType
public String toString()
toString
in class Object
Object.toString()
public NodeConfiguration clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.