com.pulumi.alicloud.dcdn.WafPolicyDomainAttachmentArgs Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of alicloud Show documentation
Show all versions of alicloud Show documentation
A Pulumi package for creating and managing AliCloud resources.
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.alicloud.dcdn;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
public final class WafPolicyDomainAttachmentArgs extends com.pulumi.resources.ResourceArgs {
public static final WafPolicyDomainAttachmentArgs Empty = new WafPolicyDomainAttachmentArgs();
/**
* Access the accelerated domain name of the specified protection policy.
*
*/
@Import(name="domainName", required=true)
private Output domainName;
/**
* @return Access the accelerated domain name of the specified protection policy.
*
*/
public Output domainName() {
return this.domainName;
}
/**
* The protection policy ID. Only one input is supported.
*
*/
@Import(name="policyId", required=true)
private Output policyId;
/**
* @return The protection policy ID. Only one input is supported.
*
*/
public Output policyId() {
return this.policyId;
}
private WafPolicyDomainAttachmentArgs() {}
private WafPolicyDomainAttachmentArgs(WafPolicyDomainAttachmentArgs $) {
this.domainName = $.domainName;
this.policyId = $.policyId;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(WafPolicyDomainAttachmentArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private WafPolicyDomainAttachmentArgs $;
public Builder() {
$ = new WafPolicyDomainAttachmentArgs();
}
public Builder(WafPolicyDomainAttachmentArgs defaults) {
$ = new WafPolicyDomainAttachmentArgs(Objects.requireNonNull(defaults));
}
/**
* @param domainName Access the accelerated domain name of the specified protection policy.
*
* @return builder
*
*/
public Builder domainName(Output domainName) {
$.domainName = domainName;
return this;
}
/**
* @param domainName Access the accelerated domain name of the specified protection policy.
*
* @return builder
*
*/
public Builder domainName(String domainName) {
return domainName(Output.of(domainName));
}
/**
* @param policyId The protection policy ID. Only one input is supported.
*
* @return builder
*
*/
public Builder policyId(Output policyId) {
$.policyId = policyId;
return this;
}
/**
* @param policyId The protection policy ID. Only one input is supported.
*
* @return builder
*
*/
public Builder policyId(String policyId) {
return policyId(Output.of(policyId));
}
public WafPolicyDomainAttachmentArgs build() {
if ($.domainName == null) {
throw new MissingRequiredPropertyException("WafPolicyDomainAttachmentArgs", "domainName");
}
if ($.policyId == null) {
throw new MissingRequiredPropertyException("WafPolicyDomainAttachmentArgs", "policyId");
}
return $;
}
}
}