com.pulumi.alicloud.dns.outputs.GetCustomLinesLine 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.dns.outputs;
import com.pulumi.alicloud.dns.outputs.GetCustomLinesLineIpSegmentList;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
@CustomType
public final class GetCustomLinesLine {
/**
* @return The Custom line Code.
*
*/
private String code;
/**
* @return The first ID of the resource.
*
*/
private String customLineId;
/**
* @return Line name.
*
*/
private String customLineName;
/**
* @return The Domain name.
*
*/
private String domainName;
/**
* @return The ID of the Custom Line.
*
*/
private String id;
/**
* @return The IP segment list.
*
*/
private List ipSegmentLists;
private GetCustomLinesLine() {}
/**
* @return The Custom line Code.
*
*/
public String code() {
return this.code;
}
/**
* @return The first ID of the resource.
*
*/
public String customLineId() {
return this.customLineId;
}
/**
* @return Line name.
*
*/
public String customLineName() {
return this.customLineName;
}
/**
* @return The Domain name.
*
*/
public String domainName() {
return this.domainName;
}
/**
* @return The ID of the Custom Line.
*
*/
public String id() {
return this.id;
}
/**
* @return The IP segment list.
*
*/
public List ipSegmentLists() {
return this.ipSegmentLists;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetCustomLinesLine defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String code;
private String customLineId;
private String customLineName;
private String domainName;
private String id;
private List ipSegmentLists;
public Builder() {}
public Builder(GetCustomLinesLine defaults) {
Objects.requireNonNull(defaults);
this.code = defaults.code;
this.customLineId = defaults.customLineId;
this.customLineName = defaults.customLineName;
this.domainName = defaults.domainName;
this.id = defaults.id;
this.ipSegmentLists = defaults.ipSegmentLists;
}
@CustomType.Setter
public Builder code(String code) {
if (code == null) {
throw new MissingRequiredPropertyException("GetCustomLinesLine", "code");
}
this.code = code;
return this;
}
@CustomType.Setter
public Builder customLineId(String customLineId) {
if (customLineId == null) {
throw new MissingRequiredPropertyException("GetCustomLinesLine", "customLineId");
}
this.customLineId = customLineId;
return this;
}
@CustomType.Setter
public Builder customLineName(String customLineName) {
if (customLineName == null) {
throw new MissingRequiredPropertyException("GetCustomLinesLine", "customLineName");
}
this.customLineName = customLineName;
return this;
}
@CustomType.Setter
public Builder domainName(String domainName) {
if (domainName == null) {
throw new MissingRequiredPropertyException("GetCustomLinesLine", "domainName");
}
this.domainName = domainName;
return this;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetCustomLinesLine", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder ipSegmentLists(List ipSegmentLists) {
if (ipSegmentLists == null) {
throw new MissingRequiredPropertyException("GetCustomLinesLine", "ipSegmentLists");
}
this.ipSegmentLists = ipSegmentLists;
return this;
}
public Builder ipSegmentLists(GetCustomLinesLineIpSegmentList... ipSegmentLists) {
return ipSegmentLists(List.of(ipSegmentLists));
}
public GetCustomLinesLine build() {
final var _resultValue = new GetCustomLinesLine();
_resultValue.code = code;
_resultValue.customLineId = customLineId;
_resultValue.customLineName = customLineName;
_resultValue.domainName = domainName;
_resultValue.id = id;
_resultValue.ipSegmentLists = ipSegmentLists;
return _resultValue;
}
}
}