public static class ReservationAffinity.Builder extends Object
Modifier and Type | Method and Description |
---|---|
ReservationAffinity.Builder |
addAllValues(List<String> values)
Corresponds to the label values of a reservation resource.
|
ReservationAffinity.Builder |
addValues(String values)
Corresponds to the label values of a reservation resource.
|
ReservationAffinity |
build() |
ReservationAffinity.Builder |
clone() |
String |
getConsumeReservationType()
Specifies the type of reservation from which this instance can consume resources:
ANY_RESERVATION (default), SPECIFIC_RESERVATION, or NO_RESERVATION.
|
String |
getKey()
Corresponds to the label key of a reservation resource.
|
List<String> |
getValuesList()
Corresponds to the label values of a reservation resource.
|
ReservationAffinity.Builder |
mergeFrom(ReservationAffinity other) |
ReservationAffinity.Builder |
setConsumeReservationType(String consumeReservationType)
Specifies the type of reservation from which this instance can consume resources:
ANY_RESERVATION (default), SPECIFIC_RESERVATION, or NO_RESERVATION.
|
ReservationAffinity.Builder |
setKey(String key)
Corresponds to the label key of a reservation resource.
|
public ReservationAffinity.Builder mergeFrom(ReservationAffinity other)
public String getConsumeReservationType()
public ReservationAffinity.Builder setConsumeReservationType(String consumeReservationType)
public String getKey()
public ReservationAffinity.Builder setKey(String key)
public List<String> getValuesList()
public ReservationAffinity.Builder addAllValues(List<String> values)
public ReservationAffinity.Builder addValues(String values)
public ReservationAffinity build()
public ReservationAffinity.Builder clone()
Copyright © 2019 Google LLC. All rights reserved.