Interface CreateAutoProtectionPolicyRequestOrBuilder (0.58.0)

public interface CreateAutoProtectionPolicyRequestOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getAutoProtectionPolicy()

public abstract AutoProtectionPolicy getAutoProtectionPolicy()

Required. The AutoProtectionPolicy resource to create.

.google.cloud.backupdr.v1beta.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.

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.

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.v1beta.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.

hasAutoProtectionPolicy()

public abstract boolean hasAutoProtectionPolicy()

Required. The AutoProtectionPolicy resource to create.

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

Returns
Type Description
boolean

Whether the autoProtectionPolicy field is set.