Class AwsServicesAuthentication.Builder (0.2.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AwsServicesAuthentication build()
Returns
TypeDescription
AwsServicesAuthentication

buildPartial()

public AwsServicesAuthentication buildPartial()
Returns
TypeDescription
AwsServicesAuthentication

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public AwsServicesAuthentication.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
AwsServicesAuthentication.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public AwsServicesAuthentication getDefaultInstanceForType()
Returns
TypeDescription
AwsServicesAuthentication

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for roleSessionName.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(AwsServicesAuthentication other)

public AwsServicesAuthentication.Builder mergeFrom(AwsServicesAuthentication other)
Parameter
NameDescription
otherAwsServicesAuthentication
Returns
TypeDescription
AwsServicesAuthentication.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public AwsServicesAuthentication.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The roleArn to set.

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

The bytes for roleArn to set.

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

The roleSessionName to set.

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

The bytes for roleSessionName to set.

Returns
TypeDescription
AwsServicesAuthentication.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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