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.Builder
ad(AvailabilityDomain.Ads ad)
Availability Domain of peerPeer.Builder
alias(String alias)
peer aliasPeer
build()
Peer.Builder
copy(Peer model)
Peer.Builder
host(String host)
Host on which the Peer existsPeer.Builder
lifecycleState(Peer.LifecycleState lifecycleState)
The current state of the peer.Peer.Builder
ocpuAllocationParam(OcpuAllocationNumberParam ocpuAllocationParam)
Peer.Builder
peerKey(String peerKey)
peer identifierPeer.Builder
role(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)
-
-