Class AccessContextManagerAccessLevelConditionConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.access_context_manager_access_level_condition.AccessContextManagerAccessLevelConditionConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<AccessContextManagerAccessLevelConditionConfig>
- Enclosing interface:
- AccessContextManagerAccessLevelConditionConfig
@Stability(Stable) public static final class AccessContextManagerAccessLevelConditionConfig.Builder extends Object implements software.amazon.jsii.Builder<AccessContextManagerAccessLevelConditionConfig>
A builder forAccessContextManagerAccessLevelConditionConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
accessLevel
@Stability(Stable) public AccessContextManagerAccessLevelConditionConfig.Builder accessLevel(String accessLevel)
Sets the value ofAccessContextManagerAccessLevelConditionConfig.getAccessLevel()- Parameters:
accessLevel- The name of the Access Level to add this condition to. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/access_context_manager_access_level_condition#access_level AccessContextManagerAccessLevelCondition#access_level}- Returns:
this
-
devicePolicy
@Stability(Stable) public AccessContextManagerAccessLevelConditionConfig.Builder devicePolicy(AccessContextManagerAccessLevelConditionDevicePolicy devicePolicy)
Sets the value ofAccessContextManagerAccessLevelConditionConfig.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_condition#device_policy AccessContextManagerAccessLevelCondition#device_policy}- Returns:
this
-
id
@Stability(Stable) public AccessContextManagerAccessLevelConditionConfig.Builder id(String id)
Sets the value ofAccessContextManagerAccessLevelConditionConfig.getId()- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/access_context_manager_access_level_condition#id AccessContextManagerAccessLevelCondition#id}. Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2. If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable.- Returns:
this
-
ipSubnetworks
@Stability(Stable) public AccessContextManagerAccessLevelConditionConfig.Builder ipSubnetworks(List<String> ipSubnetworks)
Sets the value ofAccessContextManagerAccessLevelConditionConfig.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_condition#ip_subnetworks AccessContextManagerAccessLevelCondition#ip_subnetworks}- Returns:
this
-
members
@Stability(Stable) public AccessContextManagerAccessLevelConditionConfig.Builder members(List<String> members)
Sets the value ofAccessContextManagerAccessLevelConditionConfig.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_condition#members AccessContextManagerAccessLevelCondition#members}- Returns:
this
-
negate
@Stability(Stable) public AccessContextManagerAccessLevelConditionConfig.Builder negate(Boolean negate)
Sets the value ofAccessContextManagerAccessLevelConditionConfig.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_condition#negate AccessContextManagerAccessLevelCondition#negate}- Returns:
this
-
negate
@Stability(Stable) public AccessContextManagerAccessLevelConditionConfig.Builder negate(com.hashicorp.cdktf.IResolvable negate)
Sets the value ofAccessContextManagerAccessLevelConditionConfig.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_condition#negate AccessContextManagerAccessLevelCondition#negate}- Returns:
this
-
regions
@Stability(Stable) public AccessContextManagerAccessLevelConditionConfig.Builder regions(List<String> regions)
Sets the value ofAccessContextManagerAccessLevelConditionConfig.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_condition#regions AccessContextManagerAccessLevelCondition#regions}- Returns:
this
-
requiredAccessLevels
@Stability(Stable) public AccessContextManagerAccessLevelConditionConfig.Builder requiredAccessLevels(List<String> requiredAccessLevels)
Sets the value ofAccessContextManagerAccessLevelConditionConfig.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_condition#required_access_levels AccessContextManagerAccessLevelCondition#required_access_levels}- Returns:
this
-
timeouts
@Stability(Stable) public AccessContextManagerAccessLevelConditionConfig.Builder timeouts(AccessContextManagerAccessLevelConditionTimeouts timeouts)
Sets the value ofAccessContextManagerAccessLevelConditionConfig.getTimeouts()- Parameters:
timeouts- timeouts block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/access_context_manager_access_level_condition#timeouts AccessContextManagerAccessLevelCondition#timeouts}- Returns:
this
-
vpcNetworkSources
@Stability(Stable) public AccessContextManagerAccessLevelConditionConfig.Builder vpcNetworkSources(com.hashicorp.cdktf.IResolvable vpcNetworkSources)
Sets the value ofAccessContextManagerAccessLevelConditionConfig.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_condition#vpc_network_sources AccessContextManagerAccessLevelCondition#vpc_network_sources}- Returns:
this
-
vpcNetworkSources
@Stability(Stable) public AccessContextManagerAccessLevelConditionConfig.Builder vpcNetworkSources(List<? extends AccessContextManagerAccessLevelConditionVpcNetworkSources> vpcNetworkSources)
Sets the value ofAccessContextManagerAccessLevelConditionConfig.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_condition#vpc_network_sources AccessContextManagerAccessLevelCondition#vpc_network_sources}- Returns:
this
-
connection
@Stability(Experimental) public AccessContextManagerAccessLevelConditionConfig.Builder connection(com.hashicorp.cdktf.SSHProvisionerConnection connection)
Sets the value ofTerraformMetaArguments.getConnection()- Parameters:
connection- the value to be set.- Returns:
this
-
connection
@Stability(Experimental) public AccessContextManagerAccessLevelConditionConfig.Builder connection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)
Sets the value ofTerraformMetaArguments.getConnection()- Parameters:
connection- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public AccessContextManagerAccessLevelConditionConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public AccessContextManagerAccessLevelConditionConfig.Builder count(com.hashicorp.cdktf.TerraformCount count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
dependsOn
@Stability(Experimental) public AccessContextManagerAccessLevelConditionConfig.Builder dependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)
Sets the value ofTerraformMetaArguments.getDependsOn()- Parameters:
dependsOn- the value to be set.- Returns:
this
-
forEach
@Stability(Experimental) public AccessContextManagerAccessLevelConditionConfig.Builder forEach(com.hashicorp.cdktf.ITerraformIterator forEach)
Sets the value ofTerraformMetaArguments.getForEach()- Parameters:
forEach- the value to be set.- Returns:
this
-
lifecycle
@Stability(Experimental) public AccessContextManagerAccessLevelConditionConfig.Builder lifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)
Sets the value ofTerraformMetaArguments.getLifecycle()- Parameters:
lifecycle- the value to be set.- Returns:
this
-
provider
@Stability(Experimental) public AccessContextManagerAccessLevelConditionConfig.Builder provider(com.hashicorp.cdktf.TerraformProvider provider)
Sets the value ofTerraformMetaArguments.getProvider()- Parameters:
provider- the value to be set.- Returns:
this
-
provisioners
@Stability(Experimental) public AccessContextManagerAccessLevelConditionConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public AccessContextManagerAccessLevelConditionConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<AccessContextManagerAccessLevelConditionConfig>- Returns:
- a new instance of
AccessContextManagerAccessLevelConditionConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-