com.amazonaws.services.ec2.model.DescribeLaunchTemplateVersionsRequest Maven / Gradle / Ivy
Show all versions of aws-java-sdk-ec2 Show documentation
/*
* Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
* and limitations under the License.
*/
package com.amazonaws.services.ec2.model;
import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.AmazonWebServiceRequest;
import com.amazonaws.Request;
import com.amazonaws.services.ec2.model.transform.DescribeLaunchTemplateVersionsRequestMarshaller;
/**
*
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class DescribeLaunchTemplateVersionsRequest extends AmazonWebServiceRequest implements Serializable, Cloneable,
DryRunSupportedRequest {
/**
*
* The ID of the launch template. To describe one or more versions of a specified launch template, you must specify
* either the launch template ID or the launch template name in the request. To describe all the latest or default
* launch template versions in your account, you must omit this parameter.
*
*/
private String launchTemplateId;
/**
*
* The name of the launch template. To describe one or more versions of a specified launch template, you must
* specify either the launch template ID or the launch template name in the request. To describe all the latest or
* default launch template versions in your account, you must omit this parameter.
*
*/
private String launchTemplateName;
/**
*
* One or more versions of the launch template. Valid values depend on whether you are describing a specified launch
* template (by ID or name) or all launch templates in your account.
*
*
* To describe one or more versions of a specified launch template, valid values are $Latest
,
* $Default
, and numbers.
*
*
* To describe all launch templates in your account that are defined as the latest version, the valid value is
* $Latest
. To describe all launch templates in your account that are defined as the default version,
* the valid value is $Default
. You can specify $Latest
and $Default
in the
* same call. You cannot specify numbers.
*
*/
private com.amazonaws.internal.SdkInternalList versions;
/**
*
* The version number after which to describe launch template versions.
*
*/
private String minVersion;
/**
*
* The version number up to which to describe launch template versions.
*
*/
private String maxVersion;
/**
*
* The token to request the next page of results.
*
*/
private String nextToken;
/**
*
* The maximum number of results to return in a single call. To retrieve the remaining results, make another call
* with the returned NextToken
value. This value can be between 1 and 200.
*
*/
private Integer maxResults;
/**
*
* One or more filters.
*
*
* -
*
* create-time
- The time the launch template version was created.
*
*
* -
*
* ebs-optimized
- A boolean that indicates whether the instance is optimized for Amazon EBS I/O.
*
*
* -
*
* http-endpoint
- Indicates whether the HTTP metadata endpoint on your instances is enabled (
* enabled
| disabled
).
*
*
* -
*
* http-protocol-ipv4
- Indicates whether the IPv4 endpoint for the instance metadata service is
* enabled (enabled
| disabled
).
*
*
* -
*
* host-resource-group-arn
- The ARN of the host resource group in which to launch the instances.
*
*
* -
*
* http-tokens
- The state of token usage for your instance metadata requests (optional
|
* required
).
*
*
* -
*
* iam-instance-profile
- The ARN of the IAM instance profile.
*
*
* -
*
* image-id
- The ID of the AMI.
*
*
* -
*
* instance-type
- The instance type.
*
*
* -
*
* is-default-version
- A boolean that indicates whether the launch template version is the default
* version.
*
*
* -
*
* kernel-id
- The kernel ID.
*
*
* -
*
* license-configuration-arn
- The ARN of the license configuration.
*
*
* -
*
* network-card-index
- The index of the network card.
*
*
* -
*
* ram-disk-id
- The RAM disk ID.
*
*
*
*/
private com.amazonaws.internal.SdkInternalList filters;
/**
*
* The ID of the launch template. To describe one or more versions of a specified launch template, you must specify
* either the launch template ID or the launch template name in the request. To describe all the latest or default
* launch template versions in your account, you must omit this parameter.
*
*
* @param launchTemplateId
* The ID of the launch template. To describe one or more versions of a specified launch template, you must
* specify either the launch template ID or the launch template name in the request. To describe all the
* latest or default launch template versions in your account, you must omit this parameter.
*/
public void setLaunchTemplateId(String launchTemplateId) {
this.launchTemplateId = launchTemplateId;
}
/**
*
* The ID of the launch template. To describe one or more versions of a specified launch template, you must specify
* either the launch template ID or the launch template name in the request. To describe all the latest or default
* launch template versions in your account, you must omit this parameter.
*
*
* @return The ID of the launch template. To describe one or more versions of a specified launch template, you must
* specify either the launch template ID or the launch template name in the request. To describe all the
* latest or default launch template versions in your account, you must omit this parameter.
*/
public String getLaunchTemplateId() {
return this.launchTemplateId;
}
/**
*
* The ID of the launch template. To describe one or more versions of a specified launch template, you must specify
* either the launch template ID or the launch template name in the request. To describe all the latest or default
* launch template versions in your account, you must omit this parameter.
*
*
* @param launchTemplateId
* The ID of the launch template. To describe one or more versions of a specified launch template, you must
* specify either the launch template ID or the launch template name in the request. To describe all the
* latest or default launch template versions in your account, you must omit this parameter.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeLaunchTemplateVersionsRequest withLaunchTemplateId(String launchTemplateId) {
setLaunchTemplateId(launchTemplateId);
return this;
}
/**
*
* The name of the launch template. To describe one or more versions of a specified launch template, you must
* specify either the launch template ID or the launch template name in the request. To describe all the latest or
* default launch template versions in your account, you must omit this parameter.
*
*
* @param launchTemplateName
* The name of the launch template. To describe one or more versions of a specified launch template, you must
* specify either the launch template ID or the launch template name in the request. To describe all the
* latest or default launch template versions in your account, you must omit this parameter.
*/
public void setLaunchTemplateName(String launchTemplateName) {
this.launchTemplateName = launchTemplateName;
}
/**
*
* The name of the launch template. To describe one or more versions of a specified launch template, you must
* specify either the launch template ID or the launch template name in the request. To describe all the latest or
* default launch template versions in your account, you must omit this parameter.
*
*
* @return The name of the launch template. To describe one or more versions of a specified launch template, you
* must specify either the launch template ID or the launch template name in the request. To describe all
* the latest or default launch template versions in your account, you must omit this parameter.
*/
public String getLaunchTemplateName() {
return this.launchTemplateName;
}
/**
*
* The name of the launch template. To describe one or more versions of a specified launch template, you must
* specify either the launch template ID or the launch template name in the request. To describe all the latest or
* default launch template versions in your account, you must omit this parameter.
*
*
* @param launchTemplateName
* The name of the launch template. To describe one or more versions of a specified launch template, you must
* specify either the launch template ID or the launch template name in the request. To describe all the
* latest or default launch template versions in your account, you must omit this parameter.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeLaunchTemplateVersionsRequest withLaunchTemplateName(String launchTemplateName) {
setLaunchTemplateName(launchTemplateName);
return this;
}
/**
*
* One or more versions of the launch template. Valid values depend on whether you are describing a specified launch
* template (by ID or name) or all launch templates in your account.
*
*
* To describe one or more versions of a specified launch template, valid values are $Latest
,
* $Default
, and numbers.
*
*
* To describe all launch templates in your account that are defined as the latest version, the valid value is
* $Latest
. To describe all launch templates in your account that are defined as the default version,
* the valid value is $Default
. You can specify $Latest
and $Default
in the
* same call. You cannot specify numbers.
*
*
* @return One or more versions of the launch template. Valid values depend on whether you are describing a
* specified launch template (by ID or name) or all launch templates in your account.
*
* To describe one or more versions of a specified launch template, valid values are $Latest
,
* $Default
, and numbers.
*
*
* To describe all launch templates in your account that are defined as the latest version, the valid value
* is $Latest
. To describe all launch templates in your account that are defined as the default
* version, the valid value is $Default
. You can specify $Latest
and
* $Default
in the same call. You cannot specify numbers.
*/
public java.util.List getVersions() {
if (versions == null) {
versions = new com.amazonaws.internal.SdkInternalList();
}
return versions;
}
/**
*
* One or more versions of the launch template. Valid values depend on whether you are describing a specified launch
* template (by ID or name) or all launch templates in your account.
*
*
* To describe one or more versions of a specified launch template, valid values are $Latest
,
* $Default
, and numbers.
*
*
* To describe all launch templates in your account that are defined as the latest version, the valid value is
* $Latest
. To describe all launch templates in your account that are defined as the default version,
* the valid value is $Default
. You can specify $Latest
and $Default
in the
* same call. You cannot specify numbers.
*
*
* @param versions
* One or more versions of the launch template. Valid values depend on whether you are describing a specified
* launch template (by ID or name) or all launch templates in your account.
*
* To describe one or more versions of a specified launch template, valid values are $Latest
,
* $Default
, and numbers.
*
*
* To describe all launch templates in your account that are defined as the latest version, the valid value
* is $Latest
. To describe all launch templates in your account that are defined as the default
* version, the valid value is $Default
. You can specify $Latest
and
* $Default
in the same call. You cannot specify numbers.
*/
public void setVersions(java.util.Collection versions) {
if (versions == null) {
this.versions = null;
return;
}
this.versions = new com.amazonaws.internal.SdkInternalList(versions);
}
/**
*
* One or more versions of the launch template. Valid values depend on whether you are describing a specified launch
* template (by ID or name) or all launch templates in your account.
*
*
* To describe one or more versions of a specified launch template, valid values are $Latest
,
* $Default
, and numbers.
*
*
* To describe all launch templates in your account that are defined as the latest version, the valid value is
* $Latest
. To describe all launch templates in your account that are defined as the default version,
* the valid value is $Default
. You can specify $Latest
and $Default
in the
* same call. You cannot specify numbers.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setVersions(java.util.Collection)} or {@link #withVersions(java.util.Collection)} if you want to override
* the existing values.
*
*
* @param versions
* One or more versions of the launch template. Valid values depend on whether you are describing a specified
* launch template (by ID or name) or all launch templates in your account.
*
* To describe one or more versions of a specified launch template, valid values are $Latest
,
* $Default
, and numbers.
*
*
* To describe all launch templates in your account that are defined as the latest version, the valid value
* is $Latest
. To describe all launch templates in your account that are defined as the default
* version, the valid value is $Default
. You can specify $Latest
and
* $Default
in the same call. You cannot specify numbers.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeLaunchTemplateVersionsRequest withVersions(String... versions) {
if (this.versions == null) {
setVersions(new com.amazonaws.internal.SdkInternalList(versions.length));
}
for (String ele : versions) {
this.versions.add(ele);
}
return this;
}
/**
*
* One or more versions of the launch template. Valid values depend on whether you are describing a specified launch
* template (by ID or name) or all launch templates in your account.
*
*
* To describe one or more versions of a specified launch template, valid values are $Latest
,
* $Default
, and numbers.
*
*
* To describe all launch templates in your account that are defined as the latest version, the valid value is
* $Latest
. To describe all launch templates in your account that are defined as the default version,
* the valid value is $Default
. You can specify $Latest
and $Default
in the
* same call. You cannot specify numbers.
*
*
* @param versions
* One or more versions of the launch template. Valid values depend on whether you are describing a specified
* launch template (by ID or name) or all launch templates in your account.
*
* To describe one or more versions of a specified launch template, valid values are $Latest
,
* $Default
, and numbers.
*
*
* To describe all launch templates in your account that are defined as the latest version, the valid value
* is $Latest
. To describe all launch templates in your account that are defined as the default
* version, the valid value is $Default
. You can specify $Latest
and
* $Default
in the same call. You cannot specify numbers.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeLaunchTemplateVersionsRequest withVersions(java.util.Collection versions) {
setVersions(versions);
return this;
}
/**
*
* The version number after which to describe launch template versions.
*
*
* @param minVersion
* The version number after which to describe launch template versions.
*/
public void setMinVersion(String minVersion) {
this.minVersion = minVersion;
}
/**
*
* The version number after which to describe launch template versions.
*
*
* @return The version number after which to describe launch template versions.
*/
public String getMinVersion() {
return this.minVersion;
}
/**
*
* The version number after which to describe launch template versions.
*
*
* @param minVersion
* The version number after which to describe launch template versions.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeLaunchTemplateVersionsRequest withMinVersion(String minVersion) {
setMinVersion(minVersion);
return this;
}
/**
*
* The version number up to which to describe launch template versions.
*
*
* @param maxVersion
* The version number up to which to describe launch template versions.
*/
public void setMaxVersion(String maxVersion) {
this.maxVersion = maxVersion;
}
/**
*
* The version number up to which to describe launch template versions.
*
*
* @return The version number up to which to describe launch template versions.
*/
public String getMaxVersion() {
return this.maxVersion;
}
/**
*
* The version number up to which to describe launch template versions.
*
*
* @param maxVersion
* The version number up to which to describe launch template versions.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeLaunchTemplateVersionsRequest withMaxVersion(String maxVersion) {
setMaxVersion(maxVersion);
return this;
}
/**
*
* The token to request the next page of results.
*
*
* @param nextToken
* The token to request the next page of results.
*/
public void setNextToken(String nextToken) {
this.nextToken = nextToken;
}
/**
*
* The token to request the next page of results.
*
*
* @return The token to request the next page of results.
*/
public String getNextToken() {
return this.nextToken;
}
/**
*
* The token to request the next page of results.
*
*
* @param nextToken
* The token to request the next page of results.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeLaunchTemplateVersionsRequest withNextToken(String nextToken) {
setNextToken(nextToken);
return this;
}
/**
*
* The maximum number of results to return in a single call. To retrieve the remaining results, make another call
* with the returned NextToken
value. This value can be between 1 and 200.
*
*
* @param maxResults
* The maximum number of results to return in a single call. To retrieve the remaining results, make another
* call with the returned NextToken
value. This value can be between 1 and 200.
*/
public void setMaxResults(Integer maxResults) {
this.maxResults = maxResults;
}
/**
*
* The maximum number of results to return in a single call. To retrieve the remaining results, make another call
* with the returned NextToken
value. This value can be between 1 and 200.
*
*
* @return The maximum number of results to return in a single call. To retrieve the remaining results, make another
* call with the returned NextToken
value. This value can be between 1 and 200.
*/
public Integer getMaxResults() {
return this.maxResults;
}
/**
*
* The maximum number of results to return in a single call. To retrieve the remaining results, make another call
* with the returned NextToken
value. This value can be between 1 and 200.
*
*
* @param maxResults
* The maximum number of results to return in a single call. To retrieve the remaining results, make another
* call with the returned NextToken
value. This value can be between 1 and 200.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeLaunchTemplateVersionsRequest withMaxResults(Integer maxResults) {
setMaxResults(maxResults);
return this;
}
/**
*
* One or more filters.
*
*
* -
*
* create-time
- The time the launch template version was created.
*
*
* -
*
* ebs-optimized
- A boolean that indicates whether the instance is optimized for Amazon EBS I/O.
*
*
* -
*
* http-endpoint
- Indicates whether the HTTP metadata endpoint on your instances is enabled (
* enabled
| disabled
).
*
*
* -
*
* http-protocol-ipv4
- Indicates whether the IPv4 endpoint for the instance metadata service is
* enabled (enabled
| disabled
).
*
*
* -
*
* host-resource-group-arn
- The ARN of the host resource group in which to launch the instances.
*
*
* -
*
* http-tokens
- The state of token usage for your instance metadata requests (optional
|
* required
).
*
*
* -
*
* iam-instance-profile
- The ARN of the IAM instance profile.
*
*
* -
*
* image-id
- The ID of the AMI.
*
*
* -
*
* instance-type
- The instance type.
*
*
* -
*
* is-default-version
- A boolean that indicates whether the launch template version is the default
* version.
*
*
* -
*
* kernel-id
- The kernel ID.
*
*
* -
*
* license-configuration-arn
- The ARN of the license configuration.
*
*
* -
*
* network-card-index
- The index of the network card.
*
*
* -
*
* ram-disk-id
- The RAM disk ID.
*
*
*
*
* @return One or more filters.
*
* -
*
* create-time
- The time the launch template version was created.
*
*
* -
*
* ebs-optimized
- A boolean that indicates whether the instance is optimized for Amazon EBS
* I/O.
*
*
* -
*
* http-endpoint
- Indicates whether the HTTP metadata endpoint on your instances is enabled (
* enabled
| disabled
).
*
*
* -
*
* http-protocol-ipv4
- Indicates whether the IPv4 endpoint for the instance metadata service
* is enabled (enabled
| disabled
).
*
*
* -
*
* host-resource-group-arn
- The ARN of the host resource group in which to launch the
* instances.
*
*
* -
*
* http-tokens
- The state of token usage for your instance metadata requests (
* optional
| required
).
*
*
* -
*
* iam-instance-profile
- The ARN of the IAM instance profile.
*
*
* -
*
* image-id
- The ID of the AMI.
*
*
* -
*
* instance-type
- The instance type.
*
*
* -
*
* is-default-version
- A boolean that indicates whether the launch template version is the
* default version.
*
*
* -
*
* kernel-id
- The kernel ID.
*
*
* -
*
* license-configuration-arn
- The ARN of the license configuration.
*
*
* -
*
* network-card-index
- The index of the network card.
*
*
* -
*
* ram-disk-id
- The RAM disk ID.
*
*
*/
public java.util.List getFilters() {
if (filters == null) {
filters = new com.amazonaws.internal.SdkInternalList();
}
return filters;
}
/**
*
* One or more filters.
*
*
* -
*
* create-time
- The time the launch template version was created.
*
*
* -
*
* ebs-optimized
- A boolean that indicates whether the instance is optimized for Amazon EBS I/O.
*
*
* -
*
* http-endpoint
- Indicates whether the HTTP metadata endpoint on your instances is enabled (
* enabled
| disabled
).
*
*
* -
*
* http-protocol-ipv4
- Indicates whether the IPv4 endpoint for the instance metadata service is
* enabled (enabled
| disabled
).
*
*
* -
*
* host-resource-group-arn
- The ARN of the host resource group in which to launch the instances.
*
*
* -
*
* http-tokens
- The state of token usage for your instance metadata requests (optional
|
* required
).
*
*
* -
*
* iam-instance-profile
- The ARN of the IAM instance profile.
*
*
* -
*
* image-id
- The ID of the AMI.
*
*
* -
*
* instance-type
- The instance type.
*
*
* -
*
* is-default-version
- A boolean that indicates whether the launch template version is the default
* version.
*
*
* -
*
* kernel-id
- The kernel ID.
*
*
* -
*
* license-configuration-arn
- The ARN of the license configuration.
*
*
* -
*
* network-card-index
- The index of the network card.
*
*
* -
*
* ram-disk-id
- The RAM disk ID.
*
*
*
*
* @param filters
* One or more filters.
*
* -
*
* create-time
- The time the launch template version was created.
*
*
* -
*
* ebs-optimized
- A boolean that indicates whether the instance is optimized for Amazon EBS
* I/O.
*
*
* -
*
* http-endpoint
- Indicates whether the HTTP metadata endpoint on your instances is enabled (
* enabled
| disabled
).
*
*
* -
*
* http-protocol-ipv4
- Indicates whether the IPv4 endpoint for the instance metadata service is
* enabled (enabled
| disabled
).
*
*
* -
*
* host-resource-group-arn
- The ARN of the host resource group in which to launch the
* instances.
*
*
* -
*
* http-tokens
- The state of token usage for your instance metadata requests (
* optional
| required
).
*
*
* -
*
* iam-instance-profile
- The ARN of the IAM instance profile.
*
*
* -
*
* image-id
- The ID of the AMI.
*
*
* -
*
* instance-type
- The instance type.
*
*
* -
*
* is-default-version
- A boolean that indicates whether the launch template version is the
* default version.
*
*
* -
*
* kernel-id
- The kernel ID.
*
*
* -
*
* license-configuration-arn
- The ARN of the license configuration.
*
*
* -
*
* network-card-index
- The index of the network card.
*
*
* -
*
* ram-disk-id
- The RAM disk ID.
*
*
*/
public void setFilters(java.util.Collection filters) {
if (filters == null) {
this.filters = null;
return;
}
this.filters = new com.amazonaws.internal.SdkInternalList(filters);
}
/**
*
* One or more filters.
*
*
* -
*
* create-time
- The time the launch template version was created.
*
*
* -
*
* ebs-optimized
- A boolean that indicates whether the instance is optimized for Amazon EBS I/O.
*
*
* -
*
* http-endpoint
- Indicates whether the HTTP metadata endpoint on your instances is enabled (
* enabled
| disabled
).
*
*
* -
*
* http-protocol-ipv4
- Indicates whether the IPv4 endpoint for the instance metadata service is
* enabled (enabled
| disabled
).
*
*
* -
*
* host-resource-group-arn
- The ARN of the host resource group in which to launch the instances.
*
*
* -
*
* http-tokens
- The state of token usage for your instance metadata requests (optional
|
* required
).
*
*
* -
*
* iam-instance-profile
- The ARN of the IAM instance profile.
*
*
* -
*
* image-id
- The ID of the AMI.
*
*
* -
*
* instance-type
- The instance type.
*
*
* -
*
* is-default-version
- A boolean that indicates whether the launch template version is the default
* version.
*
*
* -
*
* kernel-id
- The kernel ID.
*
*
* -
*
* license-configuration-arn
- The ARN of the license configuration.
*
*
* -
*
* network-card-index
- The index of the network card.
*
*
* -
*
* ram-disk-id
- The RAM disk ID.
*
*
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setFilters(java.util.Collection)} or {@link #withFilters(java.util.Collection)} if you want to override
* the existing values.
*
*
* @param filters
* One or more filters.
*
* -
*
* create-time
- The time the launch template version was created.
*
*
* -
*
* ebs-optimized
- A boolean that indicates whether the instance is optimized for Amazon EBS
* I/O.
*
*
* -
*
* http-endpoint
- Indicates whether the HTTP metadata endpoint on your instances is enabled (
* enabled
| disabled
).
*
*
* -
*
* http-protocol-ipv4
- Indicates whether the IPv4 endpoint for the instance metadata service is
* enabled (enabled
| disabled
).
*
*
* -
*
* host-resource-group-arn
- The ARN of the host resource group in which to launch the
* instances.
*
*
* -
*
* http-tokens
- The state of token usage for your instance metadata requests (
* optional
| required
).
*
*
* -
*
* iam-instance-profile
- The ARN of the IAM instance profile.
*
*
* -
*
* image-id
- The ID of the AMI.
*
*
* -
*
* instance-type
- The instance type.
*
*
* -
*
* is-default-version
- A boolean that indicates whether the launch template version is the
* default version.
*
*
* -
*
* kernel-id
- The kernel ID.
*
*
* -
*
* license-configuration-arn
- The ARN of the license configuration.
*
*
* -
*
* network-card-index
- The index of the network card.
*
*
* -
*
* ram-disk-id
- The RAM disk ID.
*
*
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeLaunchTemplateVersionsRequest withFilters(Filter... filters) {
if (this.filters == null) {
setFilters(new com.amazonaws.internal.SdkInternalList(filters.length));
}
for (Filter ele : filters) {
this.filters.add(ele);
}
return this;
}
/**
*
* One or more filters.
*
*
* -
*
* create-time
- The time the launch template version was created.
*
*
* -
*
* ebs-optimized
- A boolean that indicates whether the instance is optimized for Amazon EBS I/O.
*
*
* -
*
* http-endpoint
- Indicates whether the HTTP metadata endpoint on your instances is enabled (
* enabled
| disabled
).
*
*
* -
*
* http-protocol-ipv4
- Indicates whether the IPv4 endpoint for the instance metadata service is
* enabled (enabled
| disabled
).
*
*
* -
*
* host-resource-group-arn
- The ARN of the host resource group in which to launch the instances.
*
*
* -
*
* http-tokens
- The state of token usage for your instance metadata requests (optional
|
* required
).
*
*
* -
*
* iam-instance-profile
- The ARN of the IAM instance profile.
*
*
* -
*
* image-id
- The ID of the AMI.
*
*
* -
*
* instance-type
- The instance type.
*
*
* -
*
* is-default-version
- A boolean that indicates whether the launch template version is the default
* version.
*
*
* -
*
* kernel-id
- The kernel ID.
*
*
* -
*
* license-configuration-arn
- The ARN of the license configuration.
*
*
* -
*
* network-card-index
- The index of the network card.
*
*
* -
*
* ram-disk-id
- The RAM disk ID.
*
*
*
*
* @param filters
* One or more filters.
*
* -
*
* create-time
- The time the launch template version was created.
*
*
* -
*
* ebs-optimized
- A boolean that indicates whether the instance is optimized for Amazon EBS
* I/O.
*
*
* -
*
* http-endpoint
- Indicates whether the HTTP metadata endpoint on your instances is enabled (
* enabled
| disabled
).
*
*
* -
*
* http-protocol-ipv4
- Indicates whether the IPv4 endpoint for the instance metadata service is
* enabled (enabled
| disabled
).
*
*
* -
*
* host-resource-group-arn
- The ARN of the host resource group in which to launch the
* instances.
*
*
* -
*
* http-tokens
- The state of token usage for your instance metadata requests (
* optional
| required
).
*
*
* -
*
* iam-instance-profile
- The ARN of the IAM instance profile.
*
*
* -
*
* image-id
- The ID of the AMI.
*
*
* -
*
* instance-type
- The instance type.
*
*
* -
*
* is-default-version
- A boolean that indicates whether the launch template version is the
* default version.
*
*
* -
*
* kernel-id
- The kernel ID.
*
*
* -
*
* license-configuration-arn
- The ARN of the license configuration.
*
*
* -
*
* network-card-index
- The index of the network card.
*
*
* -
*
* ram-disk-id
- The RAM disk ID.
*
*
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeLaunchTemplateVersionsRequest withFilters(java.util.Collection filters) {
setFilters(filters);
return this;
}
/**
* This method is intended for internal use only. Returns the marshaled request configured with additional
* parameters to enable operation dry-run.
*/
@Override
public Request getDryRunRequest() {
Request request = new DescribeLaunchTemplateVersionsRequestMarshaller().marshall(this);
request.addParameter("DryRun", Boolean.toString(true));
return request;
}
/**
* Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
* redacted from this string using a placeholder value.
*
* @return A string representation of this object.
*
* @see java.lang.Object#toString()
*/
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (getLaunchTemplateId() != null)
sb.append("LaunchTemplateId: ").append(getLaunchTemplateId()).append(",");
if (getLaunchTemplateName() != null)
sb.append("LaunchTemplateName: ").append(getLaunchTemplateName()).append(",");
if (getVersions() != null)
sb.append("Versions: ").append(getVersions()).append(",");
if (getMinVersion() != null)
sb.append("MinVersion: ").append(getMinVersion()).append(",");
if (getMaxVersion() != null)
sb.append("MaxVersion: ").append(getMaxVersion()).append(",");
if (getNextToken() != null)
sb.append("NextToken: ").append(getNextToken()).append(",");
if (getMaxResults() != null)
sb.append("MaxResults: ").append(getMaxResults()).append(",");
if (getFilters() != null)
sb.append("Filters: ").append(getFilters());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof DescribeLaunchTemplateVersionsRequest == false)
return false;
DescribeLaunchTemplateVersionsRequest other = (DescribeLaunchTemplateVersionsRequest) obj;
if (other.getLaunchTemplateId() == null ^ this.getLaunchTemplateId() == null)
return false;
if (other.getLaunchTemplateId() != null && other.getLaunchTemplateId().equals(this.getLaunchTemplateId()) == false)
return false;
if (other.getLaunchTemplateName() == null ^ this.getLaunchTemplateName() == null)
return false;
if (other.getLaunchTemplateName() != null && other.getLaunchTemplateName().equals(this.getLaunchTemplateName()) == false)
return false;
if (other.getVersions() == null ^ this.getVersions() == null)
return false;
if (other.getVersions() != null && other.getVersions().equals(this.getVersions()) == false)
return false;
if (other.getMinVersion() == null ^ this.getMinVersion() == null)
return false;
if (other.getMinVersion() != null && other.getMinVersion().equals(this.getMinVersion()) == false)
return false;
if (other.getMaxVersion() == null ^ this.getMaxVersion() == null)
return false;
if (other.getMaxVersion() != null && other.getMaxVersion().equals(this.getMaxVersion()) == false)
return false;
if (other.getNextToken() == null ^ this.getNextToken() == null)
return false;
if (other.getNextToken() != null && other.getNextToken().equals(this.getNextToken()) == false)
return false;
if (other.getMaxResults() == null ^ this.getMaxResults() == null)
return false;
if (other.getMaxResults() != null && other.getMaxResults().equals(this.getMaxResults()) == false)
return false;
if (other.getFilters() == null ^ this.getFilters() == null)
return false;
if (other.getFilters() != null && other.getFilters().equals(this.getFilters()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getLaunchTemplateId() == null) ? 0 : getLaunchTemplateId().hashCode());
hashCode = prime * hashCode + ((getLaunchTemplateName() == null) ? 0 : getLaunchTemplateName().hashCode());
hashCode = prime * hashCode + ((getVersions() == null) ? 0 : getVersions().hashCode());
hashCode = prime * hashCode + ((getMinVersion() == null) ? 0 : getMinVersion().hashCode());
hashCode = prime * hashCode + ((getMaxVersion() == null) ? 0 : getMaxVersion().hashCode());
hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode());
hashCode = prime * hashCode + ((getMaxResults() == null) ? 0 : getMaxResults().hashCode());
hashCode = prime * hashCode + ((getFilters() == null) ? 0 : getFilters().hashCode());
return hashCode;
}
@Override
public DescribeLaunchTemplateVersionsRequest clone() {
return (DescribeLaunchTemplateVersionsRequest) super.clone();
}
}