Interface CreateAutoProtectionPolicyRequestOrBuilder (0.62.0)

public interface CreateAutoProtectionPolicyRequestOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getAutoProtectionPolicy()

public abstract AutoProtectionPolicy getAutoProtectionPolicy()

Required. The AutoProtectionPolicy resource to create.

.google.cloud.backupdr.v1.AutoProtectionPolicy auto_protection_policy = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AutoProtectionPolicy

The autoProtectionPolicy.

getAutoProtectionPolicyId()

public abstract String getAutoProtectionPolicyId()

Required. The ID to use for the policy. This will become the final component of the policy's resource name.

This value must start with a lowercase letter followed by up to 62 lowercase letters, numbers, or hyphens, and cannot end with a hyphen.

string auto_protection_policy_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The autoProtectionPolicyId.

getAutoProtectionPolicyIdBytes()

public abstract ByteString getAutoProtectionPolicyIdBytes()

Required. The ID to use for the policy. This will become the final component of the policy's resource name.

This value must start with a lowercase letter followed by up to 62 lowercase letters, numbers, or hyphens, and cannot end with a hyphen.

string auto_protection_policy_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for autoProtectionPolicyId.

getAutoProtectionPolicyOrBuilder()

public abstract AutoProtectionPolicyOrBuilder getAutoProtectionPolicyOrBuilder()

Required. The AutoProtectionPolicy resource to create.

.google.cloud.backupdr.v1.AutoProtectionPolicy auto_protection_policy = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AutoProtectionPolicyOrBuilder

getParent()

public abstract String getParent()

Required. The parent resource where this policy will be created. Format: projects/{project}/locations/{location}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The parent.

getParentBytes()

public abstract ByteString getParentBytes()

Required. The parent resource where this policy will be created. Format: projects/{project}/locations/{location}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for parent.

getRequestId()

public abstract String getRequestId()

Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request.

The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... }

Returns
Type Description
String

The requestId.

getRequestIdBytes()

public abstract ByteString getRequestIdBytes()

Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request.

The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... }

Returns
Type Description
ByteString

The bytes for requestId.

hasAutoProtectionPolicy()

public abstract boolean hasAutoProtectionPolicy()

Required. The AutoProtectionPolicy resource to create.

.google.cloud.backupdr.v1.AutoProtectionPolicy auto_protection_policy = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the autoProtectionPolicy field is set.