Package com.oracle.bmc.blockchain.model
Class Peer.Builder
- java.lang.Object
- 
- com.oracle.bmc.blockchain.model.Peer.Builder
 
- 
- 
Constructor SummaryConstructors Constructor Description Builder()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description Peer.Builderad(AvailabilityDomain.Ads ad)Availability Domain of peerPeer.Builderalias(String alias)peer aliasPeerbuild()Peer.Buildercopy(Peer model)Peer.Builderhost(String host)Host on which the Peer existsPeer.BuilderlifecycleState(Peer.LifecycleState lifecycleState)The current state of the peer.Peer.BuilderocpuAllocationParam(OcpuAllocationNumberParam ocpuAllocationParam)Peer.BuilderpeerKey(String peerKey)peer identifierPeer.Builderrole(PeerRole.Role role)Peer role
 
- 
- 
- 
Method Detail- 
peerKeypublic Peer.Builder peerKey(String peerKey) peer identifier- Parameters:
- peerKey- the value to set
- Returns:
- this builder
 
 - 
rolepublic Peer.Builder role(PeerRole.Role role) Peer role- Parameters:
- role- the value to set
- Returns:
- this builder
 
 - 
aliaspublic Peer.Builder alias(String alias) peer alias- Parameters:
- alias- the value to set
- Returns:
- this builder
 
 - 
ocpuAllocationParampublic Peer.Builder ocpuAllocationParam(OcpuAllocationNumberParam ocpuAllocationParam) 
 - 
hostpublic Peer.Builder host(String host) Host on which the Peer exists- Parameters:
- host- the value to set
- Returns:
- this builder
 
 - 
adpublic Peer.Builder ad(AvailabilityDomain.Ads ad) Availability Domain of peer- Parameters:
- ad- the value to set
- Returns:
- this builder
 
 - 
lifecycleStatepublic Peer.Builder lifecycleState(Peer.LifecycleState lifecycleState) The current state of the peer.- Parameters:
- lifecycleState- the value to set
- Returns:
- this builder
 
 - 
buildpublic Peer build() 
 - 
copypublic Peer.Builder copy(Peer model) 
 
- 
 
-