Class AccessContextManagerAccessLevelBasicConditions.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.access_context_manager_access_level.AccessContextManagerAccessLevelBasicConditions.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<AccessContextManagerAccessLevelBasicConditions>
- Enclosing interface:
- AccessContextManagerAccessLevelBasicConditions
@Stability(Stable) public static final class AccessContextManagerAccessLevelBasicConditions.Builder extends Object implements software.amazon.jsii.Builder<AccessContextManagerAccessLevelBasicConditions>
A builder forAccessContextManagerAccessLevelBasicConditions
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
devicePolicy
@Stability(Stable) public AccessContextManagerAccessLevelBasicConditions.Builder devicePolicy(AccessContextManagerAccessLevelBasicConditionsDevicePolicy devicePolicy)
Sets the value ofAccessContextManagerAccessLevelBasicConditions.getDevicePolicy()- Parameters:
devicePolicy- device_policy block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/access_context_manager_access_level#device_policy AccessContextManagerAccessLevel#device_policy}- Returns:
this
-
ipSubnetworks
@Stability(Stable) public AccessContextManagerAccessLevelBasicConditions.Builder ipSubnetworks(List<String> ipSubnetworks)
Sets the value ofAccessContextManagerAccessLevelBasicConditions.getIpSubnetworks()- Parameters:
ipSubnetworks- A list of CIDR block IP subnetwork specification. May be IPv4 or IPv6. Note that for a CIDR IP address block, the specified IP address portion must be properly truncated (i.e. all the host bits must be zero) or 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. The originating IP of a request must be in one of the listed subnets in order for this Condition to be true. If empty, all IP addresses are allowed. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/access_context_manager_access_level#ip_subnetworks AccessContextManagerAccessLevel#ip_subnetworks}- Returns:
this
-
members
@Stability(Stable) public AccessContextManagerAccessLevelBasicConditions.Builder members(List<String> members)
Sets the value ofAccessContextManagerAccessLevelBasicConditions.getMembers()- Parameters:
members- An allowed list of members (users, service accounts). Using groups is not supported yet. The signed-in user originating the request must be a part of one of the provided members. If not specified, a request may come from any user (logged in/not logged in, not present in any groups, etc.). Formats: 'user:{emailid}', 'serviceAccount:{emailid}' Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/access_context_manager_access_level#members AccessContextManagerAccessLevel#members}- Returns:
this
-
negate
@Stability(Stable) public AccessContextManagerAccessLevelBasicConditions.Builder negate(Boolean negate)
Sets the value ofAccessContextManagerAccessLevelBasicConditions.getNegate()- Parameters:
negate- Whether to negate the Condition. If true, the Condition becomes a NAND over its non-empty fields, each field must be false for the Condition overall to be satisfied. Defaults to false. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/access_context_manager_access_level#negate AccessContextManagerAccessLevel#negate}- Returns:
this
-
negate
@Stability(Stable) public AccessContextManagerAccessLevelBasicConditions.Builder negate(com.hashicorp.cdktf.IResolvable negate)
Sets the value ofAccessContextManagerAccessLevelBasicConditions.getNegate()- Parameters:
negate- Whether to negate the Condition. If true, the Condition becomes a NAND over its non-empty fields, each field must be false for the Condition overall to be satisfied. Defaults to false. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/access_context_manager_access_level#negate AccessContextManagerAccessLevel#negate}- Returns:
this
-
regions
@Stability(Stable) public AccessContextManagerAccessLevelBasicConditions.Builder regions(List<String> regions)
Sets the value ofAccessContextManagerAccessLevelBasicConditions.getRegions()- Parameters:
regions- The request must originate from one of the provided countries/regions. Format: A valid ISO 3166-1 alpha-2 code. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/access_context_manager_access_level#regions AccessContextManagerAccessLevel#regions}- Returns:
this
-
requiredAccessLevels
@Stability(Stable) public AccessContextManagerAccessLevelBasicConditions.Builder requiredAccessLevels(List<String> requiredAccessLevels)
Sets the value ofAccessContextManagerAccessLevelBasicConditions.getRequiredAccessLevels()- Parameters:
requiredAccessLevels- A list of other access levels defined in the same Policy, referenced by resource name. Referencing an AccessLevel which does not exist is an error. All access levels listed must be granted for the Condition to be true. Format: accessPolicies/{policy_id}/accessLevels/{short_name} Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/access_context_manager_access_level#required_access_levels AccessContextManagerAccessLevel#required_access_levels}- Returns:
this
-
vpcNetworkSources
@Stability(Stable) public AccessContextManagerAccessLevelBasicConditions.Builder vpcNetworkSources(com.hashicorp.cdktf.IResolvable vpcNetworkSources)
Sets the value ofAccessContextManagerAccessLevelBasicConditions.getVpcNetworkSources()- Parameters:
vpcNetworkSources- vpc_network_sources block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/access_context_manager_access_level#vpc_network_sources AccessContextManagerAccessLevel#vpc_network_sources}- Returns:
this
-
vpcNetworkSources
@Stability(Stable) public AccessContextManagerAccessLevelBasicConditions.Builder vpcNetworkSources(List<? extends AccessContextManagerAccessLevelBasicConditionsVpcNetworkSources> vpcNetworkSources)
Sets the value ofAccessContextManagerAccessLevelBasicConditions.getVpcNetworkSources()- Parameters:
vpcNetworkSources- vpc_network_sources block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/access_context_manager_access_level#vpc_network_sources AccessContextManagerAccessLevel#vpc_network_sources}- Returns:
this
-
build
@Stability(Stable) public AccessContextManagerAccessLevelBasicConditions build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<AccessContextManagerAccessLevelBasicConditions>- Returns:
- a new instance of
AccessContextManagerAccessLevelBasicConditions - Throws:
NullPointerException- if any required attribute was not provided
-
-