Class AwsCrossAccountRole.Builder (2.85.0)

public static final class AwsCrossAccountRole.Builder extends GeneratedMessage.Builder<AwsCrossAccountRole.Builder> implements AwsCrossAccountRoleOrBuilder

Authentication method for Amazon Web Services (AWS) that uses Google owned AWS IAM user's access key to assume into customer's AWS IAM Role.

Protobuf type google.cloud.bigquery.connection.v1.AwsCrossAccountRole

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public AwsCrossAccountRole build()
Returns
Type Description
AwsCrossAccountRole

buildPartial()

public AwsCrossAccountRole buildPartial()
Returns
Type Description
AwsCrossAccountRole

clear()

public AwsCrossAccountRole.Builder clear()
Returns
Type Description
AwsCrossAccountRole.Builder
Overrides

clearExternalId()

public AwsCrossAccountRole.Builder clearExternalId()

Output only. A Google-generated id for representing Connection’s identity in AWS. External Id is also used for preventing the Confused Deputy Problem. See https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_create_for-user_externalid.html

string external_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
AwsCrossAccountRole.Builder

This builder for chaining.

clearIamRoleId()

public AwsCrossAccountRole.Builder clearIamRoleId()

The user’s AWS IAM Role that trusts the Google-owned AWS IAM user Connection.

string iam_role_id = 1;

Returns
Type Description
AwsCrossAccountRole.Builder

This builder for chaining.

clearIamUserId()

public AwsCrossAccountRole.Builder clearIamUserId()

Output only. Google-owned AWS IAM User for a Connection.

string iam_user_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
AwsCrossAccountRole.Builder

This builder for chaining.

getDefaultInstanceForType()

public AwsCrossAccountRole getDefaultInstanceForType()
Returns
Type Description
AwsCrossAccountRole

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getExternalId()

public String getExternalId()

Output only. A Google-generated id for representing Connection’s identity in AWS. External Id is also used for preventing the Confused Deputy Problem. See https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_create_for-user_externalid.html

string external_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The externalId.

getExternalIdBytes()

public ByteString getExternalIdBytes()

Output only. A Google-generated id for representing Connection’s identity in AWS. External Id is also used for preventing the Confused Deputy Problem. See https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_create_for-user_externalid.html

string external_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for externalId.

getIamRoleId()

public String getIamRoleId()

The user’s AWS IAM Role that trusts the Google-owned AWS IAM user Connection.

string iam_role_id = 1;

Returns
Type Description
String

The iamRoleId.

getIamRoleIdBytes()

public ByteString getIamRoleIdBytes()

The user’s AWS IAM Role that trusts the Google-owned AWS IAM user Connection.

string iam_role_id = 1;

Returns
Type Description
ByteString

The bytes for iamRoleId.

getIamUserId()

public String getIamUserId()

Output only. Google-owned AWS IAM User for a Connection.

string iam_user_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The iamUserId.

getIamUserIdBytes()

public ByteString getIamUserIdBytes()

Output only. Google-owned AWS IAM User for a Connection.

string iam_user_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for iamUserId.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AwsCrossAccountRole other)

public AwsCrossAccountRole.Builder mergeFrom(AwsCrossAccountRole other)
Parameter
Name Description
other AwsCrossAccountRole
Returns
Type Description
AwsCrossAccountRole.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AwsCrossAccountRole.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AwsCrossAccountRole.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public AwsCrossAccountRole.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
AwsCrossAccountRole.Builder
Overrides

setExternalId(String value)

public AwsCrossAccountRole.Builder setExternalId(String value)

Output only. A Google-generated id for representing Connection’s identity in AWS. External Id is also used for preventing the Confused Deputy Problem. See https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_create_for-user_externalid.html

string external_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The externalId to set.

Returns
Type Description
AwsCrossAccountRole.Builder

This builder for chaining.

setExternalIdBytes(ByteString value)

public AwsCrossAccountRole.Builder setExternalIdBytes(ByteString value)

Output only. A Google-generated id for representing Connection’s identity in AWS. External Id is also used for preventing the Confused Deputy Problem. See https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_create_for-user_externalid.html

string external_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for externalId to set.

Returns
Type Description
AwsCrossAccountRole.Builder

This builder for chaining.

setIamRoleId(String value)

public AwsCrossAccountRole.Builder setIamRoleId(String value)

The user’s AWS IAM Role that trusts the Google-owned AWS IAM user Connection.

string iam_role_id = 1;

Parameter
Name Description
value String

The iamRoleId to set.

Returns
Type Description
AwsCrossAccountRole.Builder

This builder for chaining.

setIamRoleIdBytes(ByteString value)

public AwsCrossAccountRole.Builder setIamRoleIdBytes(ByteString value)

The user’s AWS IAM Role that trusts the Google-owned AWS IAM user Connection.

string iam_role_id = 1;

Parameter
Name Description
value ByteString

The bytes for iamRoleId to set.

Returns
Type Description
AwsCrossAccountRole.Builder

This builder for chaining.

setIamUserId(String value)

public AwsCrossAccountRole.Builder setIamUserId(String value)

Output only. Google-owned AWS IAM User for a Connection.

string iam_user_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The iamUserId to set.

Returns
Type Description
AwsCrossAccountRole.Builder

This builder for chaining.

setIamUserIdBytes(ByteString value)

public AwsCrossAccountRole.Builder setIamUserIdBytes(ByteString value)

Output only. Google-owned AWS IAM User for a Connection.

string iam_user_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for iamUserId to set.

Returns
Type Description
AwsCrossAccountRole.Builder

This builder for chaining.