Interface NewReservedInstancesConfigOrBuilder (0.1.0)

public interface NewReservedInstancesConfigOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getReservation()

public abstract String getReservation()

Optional. Immutable. Name of the reservation from which VM instances should be created, in the format projects/{project}/zones/{zone}/reservations/{reservation}.

string reservation = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The reservation.

getReservationBytes()

public abstract ByteString getReservationBytes()

Optional. Immutable. Name of the reservation from which VM instances should be created, in the format projects/{project}/zones/{zone}/reservations/{reservation}.

string reservation = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for reservation.

getSourceCase()

public abstract NewReservedInstancesConfig.SourceCase getSourceCase()
Returns
Type Description
NewReservedInstancesConfig.SourceCase

hasReservation()

public abstract boolean hasReservation()

Optional. Immutable. Name of the reservation from which VM instances should be created, in the format projects/{project}/zones/{zone}/reservations/{reservation}.

string reservation = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Returns
Type Description
boolean

Whether the reservation field is set.