Interface KeyAccessJustificationsPolicyOrBuilder (2.94.0)

public interface KeyAccessJustificationsPolicyOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getAllowedAccessReasons(int index)

public abstract AccessReason getAllowedAccessReasons(int index)

The list of allowed reasons for access to a CryptoKey. Note that empty allowed_access_reasons has a different meaning depending on where this message appears. If this is under KeyAccessJustificationsPolicyConfig, it means allow-all. If this is under CryptoKey, it means deny-all.

repeated .google.cloud.kms.v1.AccessReason allowed_access_reasons = 1;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
AccessReason

The allowedAccessReasons at the given index.

getAllowedAccessReasonsCount()

public abstract int getAllowedAccessReasonsCount()

The list of allowed reasons for access to a CryptoKey. Note that empty allowed_access_reasons has a different meaning depending on where this message appears. If this is under KeyAccessJustificationsPolicyConfig, it means allow-all. If this is under CryptoKey, it means deny-all.

repeated .google.cloud.kms.v1.AccessReason allowed_access_reasons = 1;

Returns
Type Description
int

The count of allowedAccessReasons.

getAllowedAccessReasonsList()

public abstract List<AccessReason> getAllowedAccessReasonsList()

The list of allowed reasons for access to a CryptoKey. Note that empty allowed_access_reasons has a different meaning depending on where this message appears. If this is under KeyAccessJustificationsPolicyConfig, it means allow-all. If this is under CryptoKey, it means deny-all.

repeated .google.cloud.kms.v1.AccessReason allowed_access_reasons = 1;

Returns
Type Description
List<AccessReason>

A list containing the allowedAccessReasons.

getAllowedAccessReasonsValue(int index)

public abstract int getAllowedAccessReasonsValue(int index)

The list of allowed reasons for access to a CryptoKey. Note that empty allowed_access_reasons has a different meaning depending on where this message appears. If this is under KeyAccessJustificationsPolicyConfig, it means allow-all. If this is under CryptoKey, it means deny-all.

repeated .google.cloud.kms.v1.AccessReason allowed_access_reasons = 1;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
int

The enum numeric value on the wire of allowedAccessReasons at the given index.

getAllowedAccessReasonsValueList()

public abstract List<Integer> getAllowedAccessReasonsValueList()

The list of allowed reasons for access to a CryptoKey. Note that empty allowed_access_reasons has a different meaning depending on where this message appears. If this is under KeyAccessJustificationsPolicyConfig, it means allow-all. If this is under CryptoKey, it means deny-all.

repeated .google.cloud.kms.v1.AccessReason allowed_access_reasons = 1;

Returns
Type Description
List<Integer>

A list containing the enum numeric values on the wire for allowedAccessReasons.