Interface SnapshotSettingsStorageLocationSettingsOrBuilder (1.50.0)

public interface SnapshotSettingsStorageLocationSettingsOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

containsLocations(String key)

public abstract boolean containsLocations(String key)

When the policy is SPECIFIC_LOCATIONS, snapshots will be stored in the locations listed in this field. Keys are GCS bucket locations.

map<string, .google.cloud.compute.v1.SnapshotSettingsStorageLocationSettingsStorageLocationPreference> locations = 413423454;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getLocations() (deprecated)

public abstract Map<String,SnapshotSettingsStorageLocationSettingsStorageLocationPreference> getLocations()

Use #getLocationsMap() instead.

Returns
TypeDescription
Map<String,SnapshotSettingsStorageLocationSettingsStorageLocationPreference>

getLocationsCount()

public abstract int getLocationsCount()

When the policy is SPECIFIC_LOCATIONS, snapshots will be stored in the locations listed in this field. Keys are GCS bucket locations.

map<string, .google.cloud.compute.v1.SnapshotSettingsStorageLocationSettingsStorageLocationPreference> locations = 413423454;

Returns
TypeDescription
int

getLocationsMap()

public abstract Map<String,SnapshotSettingsStorageLocationSettingsStorageLocationPreference> getLocationsMap()

When the policy is SPECIFIC_LOCATIONS, snapshots will be stored in the locations listed in this field. Keys are GCS bucket locations.

map<string, .google.cloud.compute.v1.SnapshotSettingsStorageLocationSettingsStorageLocationPreference> locations = 413423454;

Returns
TypeDescription
Map<String,SnapshotSettingsStorageLocationSettingsStorageLocationPreference>

getLocationsOrDefault(String key, SnapshotSettingsStorageLocationSettingsStorageLocationPreference defaultValue)

public abstract SnapshotSettingsStorageLocationSettingsStorageLocationPreference getLocationsOrDefault(String key, SnapshotSettingsStorageLocationSettingsStorageLocationPreference defaultValue)

When the policy is SPECIFIC_LOCATIONS, snapshots will be stored in the locations listed in this field. Keys are GCS bucket locations.

map<string, .google.cloud.compute.v1.SnapshotSettingsStorageLocationSettingsStorageLocationPreference> locations = 413423454;

Parameters
NameDescription
keyString
defaultValueSnapshotSettingsStorageLocationSettingsStorageLocationPreference
Returns
TypeDescription
SnapshotSettingsStorageLocationSettingsStorageLocationPreference

getLocationsOrThrow(String key)

public abstract SnapshotSettingsStorageLocationSettingsStorageLocationPreference getLocationsOrThrow(String key)

When the policy is SPECIFIC_LOCATIONS, snapshots will be stored in the locations listed in this field. Keys are GCS bucket locations.

map<string, .google.cloud.compute.v1.SnapshotSettingsStorageLocationSettingsStorageLocationPreference> locations = 413423454;

Parameter
NameDescription
keyString
Returns
TypeDescription
SnapshotSettingsStorageLocationSettingsStorageLocationPreference

getPolicy()

public abstract String getPolicy()

The chosen location policy. Check the Policy enum for the list of possible values.

optional string policy = 91071794;

Returns
TypeDescription
String

The policy.

getPolicyBytes()

public abstract ByteString getPolicyBytes()

The chosen location policy. Check the Policy enum for the list of possible values.

optional string policy = 91071794;

Returns
TypeDescription
ByteString

The bytes for policy.

hasPolicy()

public abstract boolean hasPolicy()

The chosen location policy. Check the Policy enum for the list of possible values.

optional string policy = 91071794;

Returns
TypeDescription
boolean

Whether the policy field is set.