Package com.oracle.bmc.blockchain.model
Class Peer.Builder
- java.lang.Object
-
- com.oracle.bmc.blockchain.model.Peer.Builder
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All 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
-
peerKey
public Peer.Builder peerKey(String peerKey)
peer identifier- Parameters:
peerKey- the value to set- Returns:
- this builder
-
role
public Peer.Builder role(PeerRole.Role role)
Peer role- Parameters:
role- the value to set- Returns:
- this builder
-
alias
public Peer.Builder alias(String alias)
peer alias- Parameters:
alias- the value to set- Returns:
- this builder
-
ocpuAllocationParam
public Peer.Builder ocpuAllocationParam(OcpuAllocationNumberParam ocpuAllocationParam)
-
host
public Peer.Builder host(String host)
Host on which the Peer exists- Parameters:
host- the value to set- Returns:
- this builder
-
ad
public Peer.Builder ad(AvailabilityDomain.Ads ad)
Availability Domain of peer- Parameters:
ad- the value to set- Returns:
- this builder
-
lifecycleState
public Peer.Builder lifecycleState(Peer.LifecycleState lifecycleState)
The current state of the peer.- Parameters:
lifecycleState- the value to set- Returns:
- this builder
-
build
public Peer build()
-
copy
public Peer.Builder copy(Peer model)
-
-