Package com.google.cloud.storage
Class BucketInfo.IpFilter.Builder
java.lang.Object
com.google.cloud.storage.BucketInfo.IpFilter.Builder
- Enclosing class:
- BucketInfo.IpFilter
- Since:
- 2.54.0
-
Method Summary
Modifier and TypeMethodDescriptionbuild()setAllowAllServiceAgentAccess(@Nullable Boolean allowAllServiceAgentAccess) Whether or not to allow all P4SA access to the bucket.setAllowCrossOrgVpcs(@Nullable Boolean allowCrossOrgVpcs) Optional.The state of the IP filter configuration.setPublicNetworkSource(@Nullable BucketInfo.IpFilter.PublicNetworkSource publicNetworkSource) Optional.setVpcNetworkSources(@Nullable List<BucketInfo.IpFilter.VpcNetworkSource> vpcNetworkSources) Optional.
-
Method Details
-
setMode
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.- Since:
- 2.54.0
- See Also:
-
setPublicNetworkSource
public BucketInfo.IpFilter.Builder setPublicNetworkSource(@Nullable BucketInfo.IpFilter.PublicNetworkSource publicNetworkSource) Optional. Public IPs allowed to operate or access the bucket.- Since:
- 2.54.0
- See Also:
-
setVpcNetworkSources
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.- Since:
- 2.54.0
- See Also:
-
setAllowCrossOrgVpcs
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.- Since:
- 2.54.0
- See Also:
-
setAllowAllServiceAgentAccess
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.- Since:
- 2.54.0
- See Also:
-
build
- Since:
- 2.54.0
-