Class AwsInstancePlacement.Builder (0.84.0)

public static final class AwsInstancePlacement.Builder extends GeneratedMessage.Builder<AwsInstancePlacement.Builder> implements AwsInstancePlacementOrBuilder

Details of placement information for an instance. Limitations for using the host tenancy:

  • T3 instances that use the unlimited CPU credit option don't support host tenancy.

Protobuf type google.cloud.gkemulticloud.v1.AwsInstancePlacement

Static Methods

getDescriptor()

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

Methods

build()

public AwsInstancePlacement build()
Returns
Type Description
AwsInstancePlacement

buildPartial()

public AwsInstancePlacement buildPartial()
Returns
Type Description
AwsInstancePlacement

clear()

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

clearTenancy()

public AwsInstancePlacement.Builder clearTenancy()

Required. The tenancy for instance.

.google.cloud.gkemulticloud.v1.AwsInstancePlacement.Tenancy tenancy = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AwsInstancePlacement.Builder

This builder for chaining.

getDefaultInstanceForType()

public AwsInstancePlacement getDefaultInstanceForType()
Returns
Type Description
AwsInstancePlacement

getDescriptorForType()

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

getTenancy()

public AwsInstancePlacement.Tenancy getTenancy()

Required. The tenancy for instance.

.google.cloud.gkemulticloud.v1.AwsInstancePlacement.Tenancy tenancy = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AwsInstancePlacement.Tenancy

The tenancy.

getTenancyValue()

public int getTenancyValue()

Required. The tenancy for instance.

.google.cloud.gkemulticloud.v1.AwsInstancePlacement.Tenancy tenancy = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The enum numeric value on the wire for tenancy.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AwsInstancePlacement other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setTenancy(AwsInstancePlacement.Tenancy value)

public AwsInstancePlacement.Builder setTenancy(AwsInstancePlacement.Tenancy value)

Required. The tenancy for instance.

.google.cloud.gkemulticloud.v1.AwsInstancePlacement.Tenancy tenancy = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value AwsInstancePlacement.Tenancy

The tenancy to set.

Returns
Type Description
AwsInstancePlacement.Builder

This builder for chaining.

setTenancyValue(int value)

public AwsInstancePlacement.Builder setTenancyValue(int value)

Required. The tenancy for instance.

.google.cloud.gkemulticloud.v1.AwsInstancePlacement.Tenancy tenancy = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value int

The enum numeric value on the wire for tenancy to set.

Returns
Type Description
AwsInstancePlacement.Builder

This builder for chaining.