Constructor and Description |
---|
Builder(java.lang.String podType)
Creates a new offer which matches the resource requirements for the specified pod.
|
Modifier and Type | Method and Description |
---|---|
SendOffer |
build() |
SendOffer.Builder |
setHostname(java.lang.String hostname)
Assigns a custom hostname to be used in the offer.
|
SendOffer.Builder |
setPodIndexToReoffer(int podIndex)
Specifies that the previously reserved resources from a previously launched pod should be used in this offer,
instead of new unreserved resources.
|
public Builder(java.lang.String podType)
public SendOffer.Builder setPodIndexToReoffer(int podIndex)
podIndex
- the index of the previous pod to be offeredpublic SendOffer.Builder setHostname(java.lang.String hostname)
public SendOffer build()