Package com.google.cloud.storage
Class BucketInfo.IpFilter.VpcNetworkSource.Builder
java.lang.Object
com.google.cloud.storage.BucketInfo.IpFilter.VpcNetworkSource.Builder
- Enclosing class:
- BucketInfo.IpFilter.VpcNetworkSource
- Since:
- 2.54.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()setAllowedIpCidrRanges(@Nullable List<String> allowedIpCidrRanges) Optional.setNetwork(@Nullable String network) Name of the network.
-
Constructor Details
-
Builder
-
-
Method Details
-
setNetwork
Name of the network.Format: `projects/PROJECT_ID/global/networks/NETWORK_NAME`
- Since:
- 2.54.0
- See Also:
-
setAllowedIpCidrRanges
public BucketInfo.IpFilter.VpcNetworkSource.Builder setAllowedIpCidrRanges(@Nullable List<String> allowedIpCidrRanges) Optional. The list of public or private IPv4 and IPv6 CIDR ranges that can access the bucket. In the CIDR IP address block, the specified IP address must be properly truncated, meaning all the host bits must be zero or else the input is considered malformed. For example, `192.0.2.0/24` is accepted but `192.0.2.1/24` is not. Similarly, for IPv6, `2001:db8::/32` is accepted whereas `2001:db8::1/32` is not.- Since:
- 2.54.0
- See Also:
-
build
- Since:
- 2.54.0
-