# Interface AwsWrappedKeyInfoOrBuilder (0.14.0)

0.14.0 (latest) 0.12.0 0.9.0 0.8.0 0.6.0 0.4.0 0.3.0 0.2.0 0.1.0

    public interface AwsWrappedKeyInfoOrBuilder extends MessageOrBuilder

## Implements

[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)

## Methods

### getEncryptedDek()

    public abstract String getEncryptedDek()

Required. The base64 encoded encrypted data encryption key.

`string encrypted_dek = 4 [(.google.api.field_behavior) = REQUIRED];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The encryptedDek. |

### getEncryptedDekBytes()

    public abstract ByteString getEncryptedDekBytes()

Required. The base64 encoded encrypted data encryption key.

`string encrypted_dek = 4 [(.google.api.field_behavior) = REQUIRED];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for encryptedDek. |

### getKekUri()

    public abstract String getKekUri()

Required. The URI of the AWS KMS key used to decrypt the DEK. Should be in
the format of `arn:{partition}:kms:{region}:{account_id}:key/{key_id}` or
`aws-kms://arn:{partition}:kms:{region}:{account_id}:key/{key_id}`

`string kek_uri = 3 [(.google.api.field_behavior) = REQUIRED];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The kekUri. |

### getKekUriBytes()

    public abstract ByteString getKekUriBytes()

Required. The URI of the AWS KMS key used to decrypt the DEK. Should be in
the format of `arn:{partition}:kms:{region}:{account_id}:key/{key_id}` or
`aws-kms://arn:{partition}:kms:{region}:{account_id}:key/{key_id}`

`string kek_uri = 3 [(.google.api.field_behavior) = REQUIRED];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for kekUri. |

### getKeyType()

    public abstract AwsWrappedKeyInfo.KeyType getKeyType()

Required. The type of algorithm used to encrypt the data.

`
.google.ads.datamanager.v1.AwsWrappedKeyInfo.KeyType key_type = 1 [(.google.api.field_behavior) = REQUIRED];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/data-manager/latest/com.google.ads.datamanager.v1.AwsWrappedKeyInfo.KeyType` | The keyType. |

### getKeyTypeValue()

    public abstract int getKeyTypeValue()

Required. The type of algorithm used to encrypt the data.

`
.google.ads.datamanager.v1.AwsWrappedKeyInfo.KeyType key_type = 1 [(.google.api.field_behavior) = REQUIRED];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The enum numeric value on the wire for keyType. |

### getRoleArn()

    public abstract String getRoleArn()

Required. The Amazon Resource Name of the IAM Role to assume for KMS
decryption access. Should be in the format of
`arn:{partition}:iam::{account_id}:role/{role_name}`

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The roleArn. |

### getRoleArnBytes()

    public abstract ByteString getRoleArnBytes()

Required. The Amazon Resource Name of the IAM Role to assume for KMS
decryption access. Should be in the format of
`arn:{partition}:iam::{account_id}:role/{role_name}`

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for roleArn. |