All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.aliyun.sdk.service.ecs20140526.models.DescribeActivationsResponseBody Maven / Gradle / Ivy

There is a newer version: 5.0.29
Show newest version
// 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 DescribeActivationsResponseBody} extends {@link TeaModel}
 *
 * 

DescribeActivationsResponseBody

*/ public class DescribeActivationsResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("ActivationList") private java.util.List < ActivationList> activationList; @com.aliyun.core.annotation.NameInMap("NextToken") private String nextToken; @com.aliyun.core.annotation.NameInMap("PageNumber") private Long pageNumber; @com.aliyun.core.annotation.NameInMap("PageSize") private Long pageSize; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("TotalCount") private Long totalCount; private DescribeActivationsResponseBody(Builder builder) { this.activationList = builder.activationList; this.nextToken = builder.nextToken; 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 DescribeActivationsResponseBody create() { return builder().build(); } /** * @return activationList */ public java.util.List < ActivationList> getActivationList() { return this.activationList; } /** * @return nextToken */ public String getNextToken() { return this.nextToken; } /** * @return pageNumber */ public Long getPageNumber() { return this.pageNumber; } /** * @return pageSize */ public Long getPageSize() { return this.pageSize; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return totalCount */ public Long getTotalCount() { return this.totalCount; } public static final class Builder { private java.util.List < ActivationList> activationList; private String nextToken; private Long pageNumber; private Long pageSize; private String requestId; private Long totalCount; /** *

The activation codes and their usage information.

*/ public Builder activationList(java.util.List < ActivationList> activationList) { this.activationList = activationList; return this; } /** *

A pagination token. It can be used in the next request to retrieve a new page of results.

* * example: *

AAAAAdDWBF2****

*/ public Builder nextToken(String nextToken) { this.nextToken = nextToken; return this; } /** *

The page number.

* * example: *

1

*/ public Builder pageNumber(Long pageNumber) { this.pageNumber = pageNumber; return this; } /** *

The number of entries per page.

* * example: *

10

*/ public Builder pageSize(Long pageSize) { this.pageSize = pageSize; return this; } /** *

The request ID.

* * example: *

4ECEEE12-56F1-4FBC-9AB1-890F74625134

*/ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** *

The total number of entries returned.

* * example: *

1

*/ public Builder totalCount(Long totalCount) { this.totalCount = totalCount; return this; } public DescribeActivationsResponseBody build() { return new DescribeActivationsResponseBody(this); } } /** * * {@link DescribeActivationsResponseBody} extends {@link TeaModel} * *

DescribeActivationsResponseBody

*/ public static class Tags extends TeaModel { @com.aliyun.core.annotation.NameInMap("TagKey") private String tagKey; @com.aliyun.core.annotation.NameInMap("TagValue") private String tagValue; private Tags(Builder builder) { this.tagKey = builder.tagKey; this.tagValue = builder.tagValue; } public static Builder builder() { return new Builder(); } public static Tags 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 key of the activation code.

* * example: *

owner

*/ public Builder tagKey(String tagKey) { this.tagKey = tagKey; return this; } /** *

The tag value of the activation code.

* * example: *

zhangsan

*/ public Builder tagValue(String tagValue) { this.tagValue = tagValue; return this; } public Tags build() { return new Tags(this); } } } /** * * {@link DescribeActivationsResponseBody} extends {@link TeaModel} * *

DescribeActivationsResponseBody

*/ public static class ActivationList extends TeaModel { @com.aliyun.core.annotation.NameInMap("ActivationId") private String activationId; @com.aliyun.core.annotation.NameInMap("CreationTime") private String creationTime; @com.aliyun.core.annotation.NameInMap("DeregisteredCount") private Integer deregisteredCount; @com.aliyun.core.annotation.NameInMap("Description") private String description; @com.aliyun.core.annotation.NameInMap("Disabled") private Boolean disabled; @com.aliyun.core.annotation.NameInMap("InstanceCount") private Integer instanceCount; @com.aliyun.core.annotation.NameInMap("InstanceName") private String instanceName; @com.aliyun.core.annotation.NameInMap("IpAddressRange") private String ipAddressRange; @com.aliyun.core.annotation.NameInMap("RegisteredCount") private Integer registeredCount; @com.aliyun.core.annotation.NameInMap("ResourceGroupId") private String resourceGroupId; @com.aliyun.core.annotation.NameInMap("Tags") private java.util.List < Tags> tags; @com.aliyun.core.annotation.NameInMap("TimeToLiveInHours") private Long timeToLiveInHours; private ActivationList(Builder builder) { this.activationId = builder.activationId; this.creationTime = builder.creationTime; this.deregisteredCount = builder.deregisteredCount; this.description = builder.description; this.disabled = builder.disabled; this.instanceCount = builder.instanceCount; this.instanceName = builder.instanceName; this.ipAddressRange = builder.ipAddressRange; this.registeredCount = builder.registeredCount; this.resourceGroupId = builder.resourceGroupId; this.tags = builder.tags; this.timeToLiveInHours = builder.timeToLiveInHours; } public static Builder builder() { return new Builder(); } public static ActivationList create() { return builder().build(); } /** * @return activationId */ public String getActivationId() { return this.activationId; } /** * @return creationTime */ public String getCreationTime() { return this.creationTime; } /** * @return deregisteredCount */ public Integer getDeregisteredCount() { return this.deregisteredCount; } /** * @return description */ public String getDescription() { return this.description; } /** * @return disabled */ public Boolean getDisabled() { return this.disabled; } /** * @return instanceCount */ public Integer getInstanceCount() { return this.instanceCount; } /** * @return instanceName */ public String getInstanceName() { return this.instanceName; } /** * @return ipAddressRange */ public String getIpAddressRange() { return this.ipAddressRange; } /** * @return registeredCount */ public Integer getRegisteredCount() { return this.registeredCount; } /** * @return resourceGroupId */ public String getResourceGroupId() { return this.resourceGroupId; } /** * @return tags */ public java.util.List < Tags> getTags() { return this.tags; } /** * @return timeToLiveInHours */ public Long getTimeToLiveInHours() { return this.timeToLiveInHours; } public static final class Builder { private String activationId; private String creationTime; private Integer deregisteredCount; private String description; private Boolean disabled; private Integer instanceCount; private String instanceName; private String ipAddressRange; private Integer registeredCount; private String resourceGroupId; private java.util.List < Tags> tags; private Long timeToLiveInHours; /** *

The ID of the activation code.

* * example: *

4ECEEE12-56F1-4FBC-9AB1-890F1234****

*/ public Builder activationId(String activationId) { this.activationId = activationId; return this; } /** *

The time when the activation code was created.

* * example: *

2021-01-20T06:00:00Z

*/ public Builder creationTime(String creationTime) { this.creationTime = creationTime; return this; } /** *

The number of instances that were deregistered.

* * example: *

1

*/ public Builder deregisteredCount(Integer deregisteredCount) { this.deregisteredCount = deregisteredCount; return this; } /** *

The description of the activation code.

* * example: *

This is description.

*/ public Builder description(String description) { this.description = description; return this; } /** *

Indicates whether the activation code is disabled.

* * example: *

false

*/ public Builder disabled(Boolean disabled) { this.disabled = disabled; return this; } /** *

The maximum number of times that the activation code can be used to register managed instances.

* * example: *

1

*/ public Builder instanceCount(Integer instanceCount) { this.instanceCount = instanceCount; return this; } /** *

The default instance name prefix.

* * example: *

test-InstanceName

*/ public Builder instanceName(String instanceName) { this.instanceName = instanceName; return this; } /** *

The IP addresses of hosts that are allowed to use the activation code.

* * example: *

0.0.0.0/0

*/ public Builder ipAddressRange(String ipAddressRange) { this.ipAddressRange = ipAddressRange; return this; } /** *

The number of instances that were registered.

* * example: *

1

*/ public Builder registeredCount(Integer registeredCount) { this.registeredCount = registeredCount; return this; } /** *

The ID of the resource group to which the activation code belongs.

* * example: *

rg-123******

*/ public Builder resourceGroupId(String resourceGroupId) { this.resourceGroupId = resourceGroupId; return this; } /** *

The tags of the activation code.

*/ public Builder tags(java.util.List < Tags> tags) { this.tags = tags; return this; } /** *

The validity period of the activation code. Unit: hours.

* * example: *

4

*/ public Builder timeToLiveInHours(Long timeToLiveInHours) { this.timeToLiveInHours = timeToLiveInHours; return this; } public ActivationList build() { return new ActivationList(this); } } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy