Class ScaleBlockchainPlatformDetails
- java.lang.Object
-
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
- com.oracle.bmc.blockchain.model.ScaleBlockchainPlatformDetails
-
@Generated(value="OracleSDKGenerator", comments="API Version: 20191010") public final class ScaleBlockchainPlatformDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
Scale operation details for a blockchain platform.The scale operation payload has multiple options - Add one or more Ordering Service Node (addOsns) - Add one or more Peers (addPeers) - Add more replicas of CA, Console and Rest Proxy (addReplicas) - Add more storage to the platform (addStorage) - Modify the CPU allocation for Peer Nodes (modifyPeers) - Remove one or more replicas of CA, Console and Rest Proxy (removeReplicas) - Remove one or more Ordering Service Node (removeOsns) - Remove one or more Peers (removePeers). The scale operation payload must have at least one of the above options.
Note: Objects should always be created or deserialized using theScaleBlockchainPlatformDetails.Builder
. This model distinguishes fields that are null because they are unset from fields that are explicitly set to null. This is done in the setter methods of theScaleBlockchainPlatformDetails.Builder
, which maintain a set of all explicitly set fields calledScaleBlockchainPlatformDetails.Builder.__explicitlySet__
. ThehashCode()
andequals(Object)
methods are implemented to take the explicitly set fields into account. The constructor, on the other hand, does not take the explicitly set fields into account (since the constructor cannot distinguish explicit null from unset null).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ScaleBlockchainPlatformDetails.Builder
-
Constructor Summary
Constructors Constructor Description ScaleBlockchainPlatformDetails(List<CreateOsnDetails> addOsns, ReplicaDetails addReplicas, List<CreatePeerDetails> addPeers, ScaleStorageDetails addStorage, List<ModifyPeerDetails> modifyPeers, ReplicaDetails removeReplicas, List<String> removeOsns, List<String> removePeers)
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ScaleBlockchainPlatformDetails.Builder
builder()
Create a new builder.boolean
equals(Object o)
List<CreateOsnDetails>
getAddOsns()
new OSNs to addList<CreatePeerDetails>
getAddPeers()
new Peers to addReplicaDetails
getAddReplicas()
ScaleStorageDetails
getAddStorage()
List<ModifyPeerDetails>
getModifyPeers()
modify ocpu allocation to existing PeersList<String>
getRemoveOsns()
OSN id list to removeList<String>
getRemovePeers()
Peer id list to removeReplicaDetails
getRemoveReplicas()
int
hashCode()
ScaleBlockchainPlatformDetails.Builder
toBuilder()
String
toString()
String
toString(boolean includeByteArrayContents)
Return a string representation of the object.
-
-
-
Constructor Detail
-
ScaleBlockchainPlatformDetails
@Deprecated @ConstructorProperties({"addOsns","addReplicas","addPeers","addStorage","modifyPeers","removeReplicas","removeOsns","removePeers"}) public ScaleBlockchainPlatformDetails(List<CreateOsnDetails> addOsns, ReplicaDetails addReplicas, List<CreatePeerDetails> addPeers, ScaleStorageDetails addStorage, List<ModifyPeerDetails> modifyPeers, ReplicaDetails removeReplicas, List<String> removeOsns, List<String> removePeers)
Deprecated.
-
-
Method Detail
-
builder
public static ScaleBlockchainPlatformDetails.Builder builder()
Create a new builder.
-
toBuilder
public ScaleBlockchainPlatformDetails.Builder toBuilder()
-
getAddOsns
public List<CreateOsnDetails> getAddOsns()
new OSNs to add- Returns:
- the value
-
getAddReplicas
public ReplicaDetails getAddReplicas()
-
getAddPeers
public List<CreatePeerDetails> getAddPeers()
new Peers to add- Returns:
- the value
-
getAddStorage
public ScaleStorageDetails getAddStorage()
-
getModifyPeers
public List<ModifyPeerDetails> getModifyPeers()
modify ocpu allocation to existing Peers- Returns:
- the value
-
getRemoveReplicas
public ReplicaDetails getRemoveReplicas()
-
toString
public String toString()
- Overrides:
toString
in classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
toString
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.- Parameters:
includeByteArrayContents
- true to include the full contents of byte arrays- Returns:
- string representation
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
-