Class MasterAuthorizedNetworksConfig.Builder (2.20.0)

public static final class MasterAuthorizedNetworksConfig.Builder extends GeneratedMessageV3.Builder<MasterAuthorizedNetworksConfig.Builder> implements MasterAuthorizedNetworksConfigOrBuilder

Configuration options for the master authorized networks feature. Enabled master authorized networks will disallow all external traffic to access Kubernetes master through HTTPS except traffic from the given CIDR blocks, Google Compute Engine Public IPs and Google Prod IPs.

Protobuf type google.container.v1.MasterAuthorizedNetworksConfig

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllCidrBlocks(Iterable<? extends MasterAuthorizedNetworksConfig.CidrBlock> values)

public MasterAuthorizedNetworksConfig.Builder addAllCidrBlocks(Iterable<? extends MasterAuthorizedNetworksConfig.CidrBlock> values)

cidr_blocks define up to 50 external networks that could access Kubernetes master through HTTPS.

repeated .google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2;

Parameter
NameDescription
valuesIterable<? extends com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock>
Returns
TypeDescription
MasterAuthorizedNetworksConfig.Builder

addCidrBlocks(MasterAuthorizedNetworksConfig.CidrBlock value)

public MasterAuthorizedNetworksConfig.Builder addCidrBlocks(MasterAuthorizedNetworksConfig.CidrBlock value)

cidr_blocks define up to 50 external networks that could access Kubernetes master through HTTPS.

repeated .google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2;

Parameter
NameDescription
valueMasterAuthorizedNetworksConfig.CidrBlock
Returns
TypeDescription
MasterAuthorizedNetworksConfig.Builder

addCidrBlocks(MasterAuthorizedNetworksConfig.CidrBlock.Builder builderForValue)

public MasterAuthorizedNetworksConfig.Builder addCidrBlocks(MasterAuthorizedNetworksConfig.CidrBlock.Builder builderForValue)

cidr_blocks define up to 50 external networks that could access Kubernetes master through HTTPS.

repeated .google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2;

Parameter
NameDescription
builderForValueMasterAuthorizedNetworksConfig.CidrBlock.Builder
Returns
TypeDescription
MasterAuthorizedNetworksConfig.Builder

addCidrBlocks(int index, MasterAuthorizedNetworksConfig.CidrBlock value)

public MasterAuthorizedNetworksConfig.Builder addCidrBlocks(int index, MasterAuthorizedNetworksConfig.CidrBlock value)

cidr_blocks define up to 50 external networks that could access Kubernetes master through HTTPS.

repeated .google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2;

Parameters
NameDescription
indexint
valueMasterAuthorizedNetworksConfig.CidrBlock
Returns
TypeDescription
MasterAuthorizedNetworksConfig.Builder

addCidrBlocks(int index, MasterAuthorizedNetworksConfig.CidrBlock.Builder builderForValue)

public MasterAuthorizedNetworksConfig.Builder addCidrBlocks(int index, MasterAuthorizedNetworksConfig.CidrBlock.Builder builderForValue)

cidr_blocks define up to 50 external networks that could access Kubernetes master through HTTPS.

repeated .google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2;

Parameters
NameDescription
indexint
builderForValueMasterAuthorizedNetworksConfig.CidrBlock.Builder
Returns
TypeDescription
MasterAuthorizedNetworksConfig.Builder

addCidrBlocksBuilder()

public MasterAuthorizedNetworksConfig.CidrBlock.Builder addCidrBlocksBuilder()

cidr_blocks define up to 50 external networks that could access Kubernetes master through HTTPS.

repeated .google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2;

Returns
TypeDescription
MasterAuthorizedNetworksConfig.CidrBlock.Builder

addCidrBlocksBuilder(int index)

public MasterAuthorizedNetworksConfig.CidrBlock.Builder addCidrBlocksBuilder(int index)

cidr_blocks define up to 50 external networks that could access Kubernetes master through HTTPS.

repeated .google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
MasterAuthorizedNetworksConfig.CidrBlock.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public MasterAuthorizedNetworksConfig build()
Returns
TypeDescription
MasterAuthorizedNetworksConfig

buildPartial()

public MasterAuthorizedNetworksConfig buildPartial()
Returns
TypeDescription
MasterAuthorizedNetworksConfig

clear()

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

clearCidrBlocks()

public MasterAuthorizedNetworksConfig.Builder clearCidrBlocks()

cidr_blocks define up to 50 external networks that could access Kubernetes master through HTTPS.

repeated .google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2;

Returns
TypeDescription
MasterAuthorizedNetworksConfig.Builder

clearEnabled()

public MasterAuthorizedNetworksConfig.Builder clearEnabled()

Whether or not master authorized networks is enabled.

bool enabled = 1;

Returns
TypeDescription
MasterAuthorizedNetworksConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearGcpPublicCidrsAccessEnabled()

public MasterAuthorizedNetworksConfig.Builder clearGcpPublicCidrsAccessEnabled()

Whether master is accessbile via Google Compute Engine Public IP addresses.

optional bool gcp_public_cidrs_access_enabled = 3;

Returns
TypeDescription
MasterAuthorizedNetworksConfig.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public MasterAuthorizedNetworksConfig.Builder clone()
Returns
TypeDescription