@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class NodeConfiguration extends Object implements Serializable, Cloneable, StructuredPojo
Configuration properties of a peer 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 owned by a member in a Managed Blockchain
network.
|
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 owned by a member in a Managed Blockchain
network.
|
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 owned by a member in a Managed Blockchain
network.
|
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.
availabilityZone
- The Availability Zone in which the node exists.public String getAvailabilityZone()
The Availability Zone in which the node exists.
public NodeConfiguration withAvailabilityZone(String availabilityZone)
The Availability Zone in which the node exists.
availabilityZone
- The Availability Zone in which the node exists.public void setLogPublishingConfiguration(NodeLogPublishingConfiguration logPublishingConfiguration)
Configuration properties for logging events associated with a peer node owned by a member in a Managed Blockchain network.
logPublishingConfiguration
- Configuration properties for logging events associated with a peer node owned by a member in a Managed
Blockchain network.public NodeLogPublishingConfiguration getLogPublishingConfiguration()
Configuration properties for logging events associated with a peer node owned by a member in a Managed Blockchain network.
public NodeConfiguration withLogPublishingConfiguration(NodeLogPublishingConfiguration logPublishingConfiguration)
Configuration properties for logging events associated with a peer node owned by a member in a Managed Blockchain network.
logPublishingConfiguration
- Configuration properties for logging events associated with a peer node owned by a member in a Managed
Blockchain network.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
.
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
.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
.
LevelDB
or CouchDB
. When
using an Amazon Managed Blockchain network with Hyperledger Fabric version 1.4 or later, the default is
CouchDB
.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
.
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
.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
.
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
.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.