Class ActiveDirectoryDomainTrustConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.active_directory_domain_trust.ActiveDirectoryDomainTrustConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ActiveDirectoryDomainTrustConfig>
- Enclosing interface:
- ActiveDirectoryDomainTrustConfig
@Stability(Stable) public static final class ActiveDirectoryDomainTrustConfig.Builder extends Object implements software.amazon.jsii.Builder<ActiveDirectoryDomainTrustConfig>
A builder forActiveDirectoryDomainTrustConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
domain
@Stability(Stable) public ActiveDirectoryDomainTrustConfig.Builder domain(String domain)
Sets the value ofActiveDirectoryDomainTrustConfig.getDomain()- Parameters:
domain- The fully qualified domain name. e.g. mydomain.myorganization.com, with the restrictions of https://cloud.google.com/managed-microsoft-ad/reference/rest/v1/projects.locations.global.domains. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/active_directory_domain_trust#domain ActiveDirectoryDomainTrust#domain}- Returns:
this
-
targetDnsIpAddresses
@Stability(Stable) public ActiveDirectoryDomainTrustConfig.Builder targetDnsIpAddresses(List<String> targetDnsIpAddresses)
Sets the value ofActiveDirectoryDomainTrustConfig.getTargetDnsIpAddresses()- Parameters:
targetDnsIpAddresses- The target DNS server IP addresses which can resolve the remote domain involved in the trust. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/active_directory_domain_trust#target_dns_ip_addresses ActiveDirectoryDomainTrust#target_dns_ip_addresses}- Returns:
this
-
targetDomainName
@Stability(Stable) public ActiveDirectoryDomainTrustConfig.Builder targetDomainName(String targetDomainName)
Sets the value ofActiveDirectoryDomainTrustConfig.getTargetDomainName()- Parameters:
targetDomainName- The fully qualified target domain name which will be in trust with the current domain. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/active_directory_domain_trust#target_domain_name ActiveDirectoryDomainTrust#target_domain_name}- Returns:
this
-
trustDirection
@Stability(Stable) public ActiveDirectoryDomainTrustConfig.Builder trustDirection(String trustDirection)
Sets the value ofActiveDirectoryDomainTrustConfig.getTrustDirection()- Parameters:
trustDirection- The trust direction, which decides if the current domain is trusted, trusting, or both. Possible values: ["INBOUND", "OUTBOUND", "BIDIRECTIONAL"]. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/active_directory_domain_trust#trust_direction ActiveDirectoryDomainTrust#trust_direction}- Returns:
this
-
trustHandshakeSecret
@Stability(Stable) public ActiveDirectoryDomainTrustConfig.Builder trustHandshakeSecret(String trustHandshakeSecret)
Sets the value ofActiveDirectoryDomainTrustConfig.getTrustHandshakeSecret()- Parameters:
trustHandshakeSecret- The trust secret used for the handshake with the target domain. This will not be stored. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/active_directory_domain_trust#trust_handshake_secret ActiveDirectoryDomainTrust#trust_handshake_secret}- Returns:
this
-
trustType
@Stability(Stable) public ActiveDirectoryDomainTrustConfig.Builder trustType(String trustType)
Sets the value ofActiveDirectoryDomainTrustConfig.getTrustType()- Parameters:
trustType- The type of trust represented by the trust resource. Possible values: ["FOREST", "EXTERNAL"]. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/active_directory_domain_trust#trust_type ActiveDirectoryDomainTrust#trust_type}- Returns:
this
-
id
@Stability(Stable) public ActiveDirectoryDomainTrustConfig.Builder id(String id)
Sets the value ofActiveDirectoryDomainTrustConfig.getId()- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/active_directory_domain_trust#id ActiveDirectoryDomainTrust#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
-
project
@Stability(Stable) public ActiveDirectoryDomainTrustConfig.Builder project(String project)
Sets the value ofActiveDirectoryDomainTrustConfig.getProject()- Parameters:
project- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/active_directory_domain_trust#project ActiveDirectoryDomainTrust#project}.- Returns:
this
-
selectiveAuthentication
@Stability(Stable) public ActiveDirectoryDomainTrustConfig.Builder selectiveAuthentication(Boolean selectiveAuthentication)
Sets the value ofActiveDirectoryDomainTrustConfig.getSelectiveAuthentication()- Parameters:
selectiveAuthentication- Whether the trusted side has forest/domain wide access or selective access to an approved set of resources. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/active_directory_domain_trust#selective_authentication ActiveDirectoryDomainTrust#selective_authentication}- Returns:
this
-
selectiveAuthentication
@Stability(Stable) public ActiveDirectoryDomainTrustConfig.Builder selectiveAuthentication(com.hashicorp.cdktf.IResolvable selectiveAuthentication)
Sets the value ofActiveDirectoryDomainTrustConfig.getSelectiveAuthentication()- Parameters:
selectiveAuthentication- Whether the trusted side has forest/domain wide access or selective access to an approved set of resources. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/active_directory_domain_trust#selective_authentication ActiveDirectoryDomainTrust#selective_authentication}- Returns:
this
-
timeouts
@Stability(Stable) public ActiveDirectoryDomainTrustConfig.Builder timeouts(ActiveDirectoryDomainTrustTimeouts timeouts)
Sets the value ofActiveDirectoryDomainTrustConfig.getTimeouts()- Parameters:
timeouts- timeouts block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/active_directory_domain_trust#timeouts ActiveDirectoryDomainTrust#timeouts}- Returns:
this
-
connection
@Stability(Experimental) public ActiveDirectoryDomainTrustConfig.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 ActiveDirectoryDomainTrustConfig.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 ActiveDirectoryDomainTrustConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public ActiveDirectoryDomainTrustConfig.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 ActiveDirectoryDomainTrustConfig.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 ActiveDirectoryDomainTrustConfig.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 ActiveDirectoryDomainTrustConfig.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 ActiveDirectoryDomainTrustConfig.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 ActiveDirectoryDomainTrustConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public ActiveDirectoryDomainTrustConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ActiveDirectoryDomainTrustConfig>- Returns:
- a new instance of
ActiveDirectoryDomainTrustConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-