Class AwsCrossAccountRole.Builder (2.7.0)

public static final class AwsCrossAccountRole.Builder extends GeneratedMessageV3.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AwsCrossAccountRole.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
AwsCrossAccountRole.Builder
Overrides

build()

public AwsCrossAccountRole build()
Returns
TypeDescription
AwsCrossAccountRole

buildPartial()

public AwsCrossAccountRole buildPartial()
Returns
TypeDescription
AwsCrossAccountRole

clear()

public AwsCrossAccountRole.Builder clear()
Returns
TypeDescription
AwsCrossAccountRole.Builder
Overrides

clearExternalId()

public AwsCrossAccountRole.Builder clearExternalId()

Output only. A Google-generated id for representing Connection\u2019s 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
TypeDescription
AwsCrossAccountRole.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public AwsCrossAccountRole.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
AwsCrossAccountRole.Builder
Overrides

clearIamRoleId()

public AwsCrossAccountRole.Builder clearIamRoleId()

The user\u2019s AWS IAM Role that trusts the Google-owned AWS IAM user Connection.

string iam_role_id = 1;

Returns
TypeDescription
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
TypeDescription
AwsCrossAccountRole.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public AwsCrossAccountRole.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
AwsCrossAccountRole.Builder
Overrides

clone()

public AwsCrossAccountRole.Builder clone()
Returns
TypeDescription
AwsCrossAccountRole.Builder
Overrides

getDefaultInstanceForType()

public AwsCrossAccountRole getDefaultInstanceForType()
Returns
TypeDescription
AwsCrossAccountRole

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getExternalId()

public String getExternalId()

Output only. A Google-generated id for representing Connection\u2019s 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
TypeDescription
String

The externalId.

getExternalIdBytes()

public ByteString getExternalIdBytes()

Output only. A Google-generated id for representing Connection\u2019s 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
TypeDescription
ByteString

The bytes for externalId.

getIamRoleId()

public String getIamRoleId()

The user\u2019s AWS IAM Role that trusts the Google-owned AWS IAM user Connection.

string iam_role_id = 1;

Returns
TypeDescription
String

The iamRoleId.

getIamRoleIdBytes()

public ByteString getIamRoleIdBytes()

The user\u2019s AWS IAM Role that trusts the Google-owned AWS IAM user Connection.

string iam_role_id = 1;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for iamUserId.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(AwsCrossAccountRole other)

public AwsCrossAccountRole.Builder mergeFrom(AwsCrossAccountRole other)
Parameter
NameDescription
otherAwsCrossAccountRole
Returns
TypeDescription
AwsCrossAccountRole.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AwsCrossAccountRole.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AwsCrossAccountRole.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public AwsCrossAccountRole.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
AwsCrossAccountRole.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AwsCrossAccountRole.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AwsCrossAccountRole.Builder
Overrides

setExternalId(String value)

public AwsCrossAccountRole.Builder setExternalId(String value)

Output only. A Google-generated id for representing Connection\u2019s 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
NameDescription
valueString

The externalId to set.

Returns
TypeDescription
AwsCrossAccountRole.Builder

This builder for chaining.

setExternalIdBytes(ByteString value)

public AwsCrossAccountRole.Builder setExternalIdBytes(ByteString value)

Output only. A Google-generated id for representing Connection\u2019s 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
NameDescription
valueByteString

The bytes for externalId to set.

Returns
TypeDescription
AwsCrossAccountRole.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public AwsCrossAccountRole.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
AwsCrossAccountRole.Builder
Overrides

setIamRoleId(String value)

public AwsCrossAccountRole.Builder setIamRoleId(String value)

The user\u2019s AWS IAM Role that trusts the Google-owned AWS IAM user Connection.

string iam_role_id = 1;

Parameter
NameDescription
valueString

The iamRoleId to set.

Returns
TypeDescription
AwsCrossAccountRole.Builder

This builder for chaining.

setIamRoleIdBytes(ByteString value)

public AwsCrossAccountRole.Builder setIamRoleIdBytes(ByteString value)

The user\u2019s AWS IAM Role that trusts the Google-owned AWS IAM user Connection.

string iam_role_id = 1;

Parameter
NameDescription
valueByteString

The bytes for iamRoleId to set.

Returns
TypeDescription
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
NameDescription
valueString

The iamUserId to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for iamUserId to set.

Returns
TypeDescription
AwsCrossAccountRole.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public AwsCrossAccountRole.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
AwsCrossAccountRole.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final AwsCrossAccountRole.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AwsCrossAccountRole.Builder
Overrides