com.pulumi.alicloud.apigateway.outputs.InstanceZoneVswitchSecurityGroup 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.apigateway.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
@CustomType
public final class InstanceZoneVswitchSecurityGroup {
/**
* @return The CIDR block of the VSwitch.
*
*/
private String cidrBlock;
/**
* @return The ID of the security group.
*
*/
private String securityGroup;
/**
* @return The VSwitch ID.
*
*/
private String vswitchId;
/**
* @return The zone ID.
*
*/
private String zoneId;
private InstanceZoneVswitchSecurityGroup() {}
/**
* @return The CIDR block of the VSwitch.
*
*/
public String cidrBlock() {
return this.cidrBlock;
}
/**
* @return The ID of the security group.
*
*/
public String securityGroup() {
return this.securityGroup;
}
/**
* @return The VSwitch ID.
*
*/
public String vswitchId() {
return this.vswitchId;
}
/**
* @return The zone ID.
*
*/
public String zoneId() {
return this.zoneId;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(InstanceZoneVswitchSecurityGroup defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String cidrBlock;
private String securityGroup;
private String vswitchId;
private String zoneId;
public Builder() {}
public Builder(InstanceZoneVswitchSecurityGroup defaults) {
Objects.requireNonNull(defaults);
this.cidrBlock = defaults.cidrBlock;
this.securityGroup = defaults.securityGroup;
this.vswitchId = defaults.vswitchId;
this.zoneId = defaults.zoneId;
}
@CustomType.Setter
public Builder cidrBlock(String cidrBlock) {
if (cidrBlock == null) {
throw new MissingRequiredPropertyException("InstanceZoneVswitchSecurityGroup", "cidrBlock");
}
this.cidrBlock = cidrBlock;
return this;
}
@CustomType.Setter
public Builder securityGroup(String securityGroup) {
if (securityGroup == null) {
throw new MissingRequiredPropertyException("InstanceZoneVswitchSecurityGroup", "securityGroup");
}
this.securityGroup = securityGroup;
return this;
}
@CustomType.Setter
public Builder vswitchId(String vswitchId) {
if (vswitchId == null) {
throw new MissingRequiredPropertyException("InstanceZoneVswitchSecurityGroup", "vswitchId");
}
this.vswitchId = vswitchId;
return this;
}
@CustomType.Setter
public Builder zoneId(String zoneId) {
if (zoneId == null) {
throw new MissingRequiredPropertyException("InstanceZoneVswitchSecurityGroup", "zoneId");
}
this.zoneId = zoneId;
return this;
}
public InstanceZoneVswitchSecurityGroup build() {
final var _resultValue = new InstanceZoneVswitchSecurityGroup();
_resultValue.cidrBlock = cidrBlock;
_resultValue.securityGroup = securityGroup;
_resultValue.vswitchId = vswitchId;
_resultValue.zoneId = zoneId;
return _resultValue;
}
}
}