Class BucketInfo.IpFilter.Builder (2.54.0)

public static final class BucketInfo.IpFilter.Builder

Inheritance

java.lang.Object > BucketInfo.IpFilter.Builder

Methods

build()

public BucketInfo.IpFilter build()
Returns
Type Description
BucketInfo.IpFilter

setAllowAllServiceAgentAccess(@Nullable Boolean allowAllServiceAgentAccess)

public BucketInfo.IpFilter.Builder setAllowAllServiceAgentAccess(@Nullable Boolean allowAllServiceAgentAccess)

Whether or not to allow all P4SA access to the bucket. When set to true, IP filter config validation will not apply. See Also: IpFilter#getAllowAllServiceAgentAccess()

Parameter
Name Description
allowAllServiceAgentAccess @org.checkerframework.checker.nullness.qual.Nullable java.lang.Boolean
Returns
Type Description
BucketInfo.IpFilter.Builder

setAllowCrossOrgVpcs(@Nullable Boolean allowCrossOrgVpcs)

public BucketInfo.IpFilter.Builder setAllowCrossOrgVpcs(@Nullable Boolean allowCrossOrgVpcs)

Optional. Whether or not to allow VPCs from orgs different than the bucket's parent org to access the bucket. When set to true, validations on the existence of the VPCs won't be performed. If set to false, each VPC network source will be checked to belong to the same org as the bucket as well as validated for existence. See Also: IpFilter#getAllowCrossOrgVpcs()

Parameter
Name Description
allowCrossOrgVpcs @org.checkerframework.checker.nullness.qual.Nullable java.lang.Boolean
Returns
Type Description
BucketInfo.IpFilter.Builder

setMode(@Nullable String mode)

public BucketInfo.IpFilter.Builder setMode(@Nullable String mode)

The state of the IP filter configuration. Valid values are Enabled and Disabled. When set to Enabled, IP filtering rules are applied to a bucket and all incoming requests to the bucket are evaluated against these rules. When set to Disabled, IP filtering rules are not applied to a bucket. See Also: IpFilter#getMode

Parameter
Name Description
mode @org.checkerframework.checker.nullness.qual.Nullable java.lang.String
Returns
Type Description
BucketInfo.IpFilter.Builder

setPublicNetworkSource(@Nullable BucketInfo.IpFilter.PublicNetworkSource publicNetworkSource)

public BucketInfo.IpFilter.Builder setPublicNetworkSource(@Nullable BucketInfo.IpFilter.PublicNetworkSource publicNetworkSource)

Optional. Public IPs allowed to operate or access the bucket. See Also: IpFilter#getPublicNetworkSource()

Parameter
Name Description
publicNetworkSource @org.checkerframework.checker.nullness.qual.Nullable com.google.cloud.storage.BucketInfo.IpFilter.PublicNetworkSource
Returns
Type Description
BucketInfo.IpFilter.Builder

setVpcNetworkSources(@Nullable List<BucketInfo.IpFilter.VpcNetworkSource> vpcNetworkSources)

public BucketInfo.IpFilter.Builder setVpcNetworkSources(@Nullable List<BucketInfo.IpFilter.VpcNetworkSource> vpcNetworkSources)

Optional. The list of network sources that are allowed to access operations on the bucket or the underlying objects. See Also: IpFilter#getVpcNetworkSources()

Parameter
Name Description
vpcNetworkSources @org.checkerframework.checker.nullness.qual.Nullable java.util.List<VpcNetworkSource>
Returns
Type Description
BucketInfo.IpFilter.Builder