com.aliyun.sdk.service.ecs20140526.models.DescribeLaunchTemplatesResponseBody Maven / Gradle / Ivy
Show all versions of alibabacloud-ecs20140526 Show documentation
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.ecs20140526.models;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeLaunchTemplatesResponseBody} extends {@link TeaModel}
*
* DescribeLaunchTemplatesResponseBody
*/
public class DescribeLaunchTemplatesResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("LaunchTemplateSets")
private LaunchTemplateSets launchTemplateSets;
@com.aliyun.core.annotation.NameInMap("PageNumber")
private Integer pageNumber;
@com.aliyun.core.annotation.NameInMap("PageSize")
private Integer pageSize;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("TotalCount")
private Integer totalCount;
private DescribeLaunchTemplatesResponseBody(Builder builder) {
this.launchTemplateSets = builder.launchTemplateSets;
this.pageNumber = builder.pageNumber;
this.pageSize = builder.pageSize;
this.requestId = builder.requestId;
this.totalCount = builder.totalCount;
}
public static Builder builder() {
return new Builder();
}
public static DescribeLaunchTemplatesResponseBody create() {
return builder().build();
}
/**
* @return launchTemplateSets
*/
public LaunchTemplateSets getLaunchTemplateSets() {
return this.launchTemplateSets;
}
/**
* @return pageNumber
*/
public Integer getPageNumber() {
return this.pageNumber;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return totalCount
*/
public Integer getTotalCount() {
return this.totalCount;
}
public static final class Builder {
private LaunchTemplateSets launchTemplateSets;
private Integer pageNumber;
private Integer pageSize;
private String requestId;
private Integer totalCount;
/**
* The queried launch templates.
*/
public Builder launchTemplateSets(LaunchTemplateSets launchTemplateSets) {
this.launchTemplateSets = launchTemplateSets;
return this;
}
/**
* The total number of launch templates.
*
* example:
* 1
*/
public Builder pageNumber(Integer pageNumber) {
this.pageNumber = pageNumber;
return this;
}
/**
* The ID of the request.
*
* example:
* 10
*/
public Builder pageSize(Integer pageSize) {
this.pageSize = pageSize;
return this;
}
/**
* The page number of the returned page.
*
* example:
* 04F0F334-1335-436C-A1D7-6C044FE12CBA
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* The information about the launch templates.
*
* example:
* 1
*/
public Builder totalCount(Integer totalCount) {
this.totalCount = totalCount;
return this;
}
public DescribeLaunchTemplatesResponseBody build() {
return new DescribeLaunchTemplatesResponseBody(this);
}
}
/**
*
* {@link DescribeLaunchTemplatesResponseBody} extends {@link TeaModel}
*
* DescribeLaunchTemplatesResponseBody
*/
public static class Tag extends TeaModel {
@com.aliyun.core.annotation.NameInMap("TagKey")
private String tagKey;
@com.aliyun.core.annotation.NameInMap("TagValue")
private String tagValue;
private Tag(Builder builder) {
this.tagKey = builder.tagKey;
this.tagValue = builder.tagValue;
}
public static Builder builder() {
return new Builder();
}
public static Tag create() {
return builder().build();
}
/**
* @return tagKey
*/
public String getTagKey() {
return this.tagKey;
}
/**
* @return tagValue
*/
public String getTagValue() {
return this.tagValue;
}
public static final class Builder {
private String tagKey;
private String tagValue;
/**
* The tag value of the launch template.
*
* example:
* TestKey
*/
public Builder tagKey(String tagKey) {
this.tagKey = tagKey;
return this;
}
/**
* The tag key of the launch template.
*
* example:
* TestValue
*/
public Builder tagValue(String tagValue) {
this.tagValue = tagValue;
return this;
}
public Tag build() {
return new Tag(this);
}
}
}
/**
*
* {@link DescribeLaunchTemplatesResponseBody} extends {@link TeaModel}
*
* DescribeLaunchTemplatesResponseBody
*/
public static class Tags extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Tag")
private java.util.List < Tag> tag;
private Tags(Builder builder) {
this.tag = builder.tag;
}
public static Builder builder() {
return new Builder();
}
public static Tags create() {
return builder().build();
}
/**
* @return tag
*/
public java.util.List < Tag> getTag() {
return this.tag;
}
public static final class Builder {
private java.util.List < Tag> tag;
/**
* Tag.
*/
public Builder tag(java.util.List < Tag> tag) {
this.tag = tag;
return this;
}
public Tags build() {
return new Tags(this);
}
}
}
/**
*
* {@link DescribeLaunchTemplatesResponseBody} extends {@link TeaModel}
*
* DescribeLaunchTemplatesResponseBody
*/
public static class LaunchTemplateSet extends TeaModel {
@com.aliyun.core.annotation.NameInMap("CreateTime")
private String createTime;
@com.aliyun.core.annotation.NameInMap("CreatedBy")
private String createdBy;
@com.aliyun.core.annotation.NameInMap("DefaultVersionNumber")
private Long defaultVersionNumber;
@com.aliyun.core.annotation.NameInMap("LatestVersionNumber")
private Long latestVersionNumber;
@com.aliyun.core.annotation.NameInMap("LaunchTemplateId")
private String launchTemplateId;
@com.aliyun.core.annotation.NameInMap("LaunchTemplateName")
private String launchTemplateName;
@com.aliyun.core.annotation.NameInMap("ModifiedTime")
private String modifiedTime;
@com.aliyun.core.annotation.NameInMap("ResourceGroupId")
private String resourceGroupId;
@com.aliyun.core.annotation.NameInMap("Tags")
private Tags tags;
private LaunchTemplateSet(Builder builder) {
this.createTime = builder.createTime;
this.createdBy = builder.createdBy;
this.defaultVersionNumber = builder.defaultVersionNumber;
this.latestVersionNumber = builder.latestVersionNumber;
this.launchTemplateId = builder.launchTemplateId;
this.launchTemplateName = builder.launchTemplateName;
this.modifiedTime = builder.modifiedTime;
this.resourceGroupId = builder.resourceGroupId;
this.tags = builder.tags;
}
public static Builder builder() {
return new Builder();
}
public static LaunchTemplateSet create() {
return builder().build();
}
/**
* @return createTime
*/
public String getCreateTime() {
return this.createTime;
}
/**
* @return createdBy
*/
public String getCreatedBy() {
return this.createdBy;
}
/**
* @return defaultVersionNumber
*/
public Long getDefaultVersionNumber() {
return this.defaultVersionNumber;
}
/**
* @return latestVersionNumber
*/
public Long getLatestVersionNumber() {
return this.latestVersionNumber;
}
/**
* @return launchTemplateId
*/
public String getLaunchTemplateId() {
return this.launchTemplateId;
}
/**
* @return launchTemplateName
*/
public String getLaunchTemplateName() {
return this.launchTemplateName;
}
/**
* @return modifiedTime
*/
public String getModifiedTime() {
return this.modifiedTime;
}
/**
* @return resourceGroupId
*/
public String getResourceGroupId() {
return this.resourceGroupId;
}
/**
* @return tags
*/
public Tags getTags() {
return this.tags;
}
public static final class Builder {
private String createTime;
private String createdBy;
private Long defaultVersionNumber;
private Long latestVersionNumber;
private String launchTemplateId;
private String launchTemplateName;
private String modifiedTime;
private String resourceGroupId;
private Tags tags;
/**
* The time when the launch template was created.
* The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.
*
* example:
* 2018-05-14T14:18:00Z
*/
public Builder createTime(String createTime) {
this.createTime = createTime;
return this;
}
/**
* The ID of the Alibaba Cloud account that created the launch template.
*
* example:
* 1234567890
*/
public Builder createdBy(String createdBy) {
this.createdBy = createdBy;
return this;
}
/**
* The time when the launch template was modified.
*
* example:
* 1
*/
public Builder defaultVersionNumber(Long defaultVersionNumber) {
this.defaultVersionNumber = defaultVersionNumber;
return this;
}
/**
* The tags of the launch template.
*
* example:
* 1
*/
public Builder latestVersionNumber(Long latestVersionNumber) {
this.latestVersionNumber = latestVersionNumber;
return this;
}
/**
* The time when the launch template was created.
*
* example:
* lt-m5e3ofjr1zn1aw7q****
*/
public Builder launchTemplateId(String launchTemplateId) {
this.launchTemplateId = launchTemplateId;
return this;
}
/**
* The default version number of the launch template.
*
* example:
* wd-152630748****
*/
public Builder launchTemplateName(String launchTemplateName) {
this.launchTemplateName = launchTemplateName;
return this;
}
/**
* The time when a version was added to or deleted from the launch template.
* The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.
*
* example:
* 2018-05-14T14:18:00Z
*/
public Builder modifiedTime(String modifiedTime) {
this.modifiedTime = modifiedTime;
return this;
}
/**
* The creator of the launch template.
*
* example:
* rg-acfmxazb4p****
*/
public Builder resourceGroupId(String resourceGroupId) {
this.resourceGroupId = resourceGroupId;
return this;
}
/**
* The tags of the launch template.
*
* You can only call API operations to add tags to and query the tags of a launch template. You cannot add tags to or view the tags of a launch template in the ECS console.
*
*/
public Builder tags(Tags tags) {
this.tags = tags;
return this;
}
public LaunchTemplateSet build() {
return new LaunchTemplateSet(this);
}
}
}
/**
*
* {@link DescribeLaunchTemplatesResponseBody} extends {@link TeaModel}
*
* DescribeLaunchTemplatesResponseBody
*/
public static class LaunchTemplateSets extends TeaModel {
@com.aliyun.core.annotation.NameInMap("LaunchTemplateSet")
private java.util.List < LaunchTemplateSet> launchTemplateSet;
private LaunchTemplateSets(Builder builder) {
this.launchTemplateSet = builder.launchTemplateSet;
}
public static Builder builder() {
return new Builder();
}
public static LaunchTemplateSets create() {
return builder().build();
}
/**
* @return launchTemplateSet
*/
public java.util.List < LaunchTemplateSet> getLaunchTemplateSet() {
return this.launchTemplateSet;
}
public static final class Builder {
private java.util.List < LaunchTemplateSet> launchTemplateSet;
/**
* LaunchTemplateSet.
*/
public Builder launchTemplateSet(java.util.List < LaunchTemplateSet> launchTemplateSet) {
this.launchTemplateSet = launchTemplateSet;
return this;
}
public LaunchTemplateSets build() {
return new LaunchTemplateSets(this);
}
}
}
}