Class AwsServicesAuthentication.Builder (0.84.0)

public static final class AwsServicesAuthentication.Builder extends GeneratedMessage.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

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

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.

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 GeneratedMessage.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

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.