Class AwsServicesAuthentication.Builder (0.43.0)

public static final class AwsServicesAuthentication.Builder extends GeneratedMessageV3.Builder<AwsServicesAuthentication.Builder> implements AwsServicesAuthenticationOrBuilder

Authentication configuration for the management of AWS resources.

Protobuf type google.cloud.gkemulticloud.v1.AwsServicesAuthentication

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AwsServicesAuthentication.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AwsServicesAuthentication.Builder
Overrides

build()

public AwsServicesAuthentication build()
Returns
Type Description
AwsServicesAuthentication

buildPartial()

public AwsServicesAuthentication buildPartial()
Returns
Type Description
AwsServicesAuthentication

clear()

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

clearField(Descriptors.FieldDescriptor field)

public AwsServicesAuthentication.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
AwsServicesAuthentication.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public AwsServicesAuthentication.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
AwsServicesAuthentication.Builder
Overrides

clearRoleArn()

public AwsServicesAuthentication.Builder clearRoleArn()

Required. The Amazon Resource Name (ARN) of the role that the Anthos Multi-Cloud API will assume when managing AWS resources on your account.

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

Returns
Type Description
AwsServicesAuthentication.Builder

This builder for chaining.

clearRoleSessionName()

public AwsServicesAuthentication.Builder clearRoleSessionName()

Optional. An identifier for the assumed role session.

When unspecified, it defaults to multicloud-service-agent.

string role_session_name = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AwsServicesAuthentication.Builder

This builder for chaining.

clone()

public AwsServicesAuthentication.Builder clone()
Returns
Type Description
AwsServicesAuthentication.Builder
Overrides

getDefaultInstanceForType()

public AwsServicesAuthentication getDefaultInstanceForType()
Returns
Type Description
AwsServicesAuthentication

getDescriptorForType()

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

getRoleArn()

public String getRoleArn()

Required. The Amazon Resource Name (ARN) of the role that the Anthos Multi-Cloud API will assume when managing AWS resources on your account.

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

Returns
Type Description
String

The roleArn.

getRoleArnBytes()

public ByteString getRoleArnBytes()

Required. The Amazon Resource Name (ARN) of the role that the Anthos Multi-Cloud API will assume when managing AWS resources on your account.

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

Returns
Type Description
ByteString

The bytes for roleArn.

getRoleSessionName()

public String getRoleSessionName()

Optional. An identifier for the assumed role session.

When unspecified, it defaults to multicloud-service-agent.

string role_session_name = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The roleSessionName.

getRoleSessionNameBytes()

public ByteString getRoleSessionNameBytes()

Optional. An identifier for the assumed role session.

When unspecified, it defaults to multicloud-service-agent.

string role_session_name = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for roleSessionName.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AwsServicesAuthentication other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AwsServicesAuthentication.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AwsServicesAuthentication.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public AwsServicesAuthentication.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AwsServicesAuthentication.Builder
Overrides

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

public AwsServicesAuthentication.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
AwsServicesAuthentication.Builder
Overrides

setRoleArn(String value)

public AwsServicesAuthentication.Builder setRoleArn(String value)

Required. The Amazon Resource Name (ARN) of the role that the Anthos Multi-Cloud API will assume when managing AWS resources on your account.

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

Parameter
Name Description
value String

The roleArn to set.

Returns
Type Description
AwsServicesAuthentication.Builder

This builder for chaining.

setRoleArnBytes(ByteString value)

public AwsServicesAuthentication.Builder setRoleArnBytes(ByteString value)

Required. The Amazon Resource Name (ARN) of the role that the Anthos Multi-Cloud API will assume when managing AWS resources on your account.

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

Parameter
Name Description
value ByteString

The bytes for roleArn to set.

Returns
Type Description
AwsServicesAuthentication.Builder

This builder for chaining.

setRoleSessionName(String value)

public AwsServicesAuthentication.Builder setRoleSessionName(String value)

Optional. An identifier for the assumed role session.

When unspecified, it defaults to multicloud-service-agent.

string role_session_name = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The roleSessionName to set.

Returns
Type Description
AwsServicesAuthentication.Builder

This builder for chaining.

setRoleSessionNameBytes(ByteString value)

public AwsServicesAuthentication.Builder setRoleSessionNameBytes(ByteString value)

Optional. An identifier for the assumed role session.

When unspecified, it defaults to multicloud-service-agent.

string role_session_name = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for roleSessionName to set.

Returns
Type Description
AwsServicesAuthentication.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final AwsServicesAuthentication.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AwsServicesAuthentication.Builder
Overrides