@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateComponentRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
CreateComponentRequest() |
Modifier and Type | Method and Description |
---|---|
CreateComponentRequest |
addTagsEntry(String key,
String value)
Add a single Tags entry
|
CreateComponentRequest |
clearTagsEntries()
Removes all the entries added into Tags.
|
CreateComponentRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getChangeDescription()
The change description of the component.
|
String |
getClientToken()
Unique, case-sensitive identifier you provide to ensure idempotency of the request.
|
String |
getData()
Component
data contains inline YAML document content for the component. |
String |
getDescription()
Describes the contents of the component.
|
String |
getKmsKeyId()
The ID of the KMS key that is used to encrypt this component.
|
String |
getName()
The name of the component.
|
String |
getPlatform()
The operating system platform of the component.
|
String |
getSemanticVersion()
The semantic version of the component.
|
List<String> |
getSupportedOsVersions()
The operating system (OS) version supported by the component.
|
Map<String,String> |
getTags()
The tags that apply to the component.
|
String |
getUri()
The
uri of a YAML component document file. |
int |
hashCode() |
void |
setChangeDescription(String changeDescription)
The change description of the component.
|
void |
setClientToken(String clientToken)
Unique, case-sensitive identifier you provide to ensure idempotency of the request.
|
void |
setData(String data)
Component
data contains inline YAML document content for the component. |
void |
setDescription(String description)
Describes the contents of the component.
|
void |
setKmsKeyId(String kmsKeyId)
The ID of the KMS key that is used to encrypt this component.
|
void |
setName(String name)
The name of the component.
|
void |
setPlatform(String platform)
The operating system platform of the component.
|
void |
setSemanticVersion(String semanticVersion)
The semantic version of the component.
|
void |
setSupportedOsVersions(Collection<String> supportedOsVersions)
The operating system (OS) version supported by the component.
|
void |
setTags(Map<String,String> tags)
The tags that apply to the component.
|
void |
setUri(String uri)
The
uri of a YAML component document file. |
String |
toString()
Returns a string representation of this object.
|
CreateComponentRequest |
withChangeDescription(String changeDescription)
The change description of the component.
|
CreateComponentRequest |
withClientToken(String clientToken)
Unique, case-sensitive identifier you provide to ensure idempotency of the request.
|
CreateComponentRequest |
withData(String data)
Component
data contains inline YAML document content for the component. |
CreateComponentRequest |
withDescription(String description)
Describes the contents of the component.
|
CreateComponentRequest |
withKmsKeyId(String kmsKeyId)
The ID of the KMS key that is used to encrypt this component.
|
CreateComponentRequest |
withName(String name)
The name of the component.
|
CreateComponentRequest |
withPlatform(Platform platform)
The operating system platform of the component.
|
CreateComponentRequest |
withPlatform(String platform)
The operating system platform of the component.
|
CreateComponentRequest |
withSemanticVersion(String semanticVersion)
The semantic version of the component.
|
CreateComponentRequest |
withSupportedOsVersions(Collection<String> supportedOsVersions)
The operating system (OS) version supported by the component.
|
CreateComponentRequest |
withSupportedOsVersions(String... supportedOsVersions)
The operating system (OS) version supported by the component.
|
CreateComponentRequest |
withTags(Map<String,String> tags)
The tags that apply to the component.
|
CreateComponentRequest |
withUri(String uri)
The
uri of a YAML component document file. |
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setName(String name)
The name of the component.
name
- The name of the component.public String getName()
The name of the component.
public CreateComponentRequest withName(String name)
The name of the component.
name
- The name of the component.public void setSemanticVersion(String semanticVersion)
The semantic version of the component. This version follows the semantic version syntax.
The semantic version has four nodes: <major>.<minor>.<patch>/<build>. You can assign values for the first three, and can filter on all of them.
Assignment: For the first three nodes you can assign any positive integer value, including zero, with an upper limit of 2^30-1, or 1073741823 for each node. Image Builder automatically assigns the build number to the fourth node.
Patterns: You can use any numeric pattern that adheres to the assignment requirements for the nodes that you can assign. For example, you might choose a software version pattern, such as 1.0.0, or a date, such as 2021.01.01.
semanticVersion
- The semantic version of the component. This version follows the semantic version syntax. The semantic version has four nodes: <major>.<minor>.<patch>/<build>. You can assign values for the first three, and can filter on all of them.
Assignment: For the first three nodes you can assign any positive integer value, including zero, with an upper limit of 2^30-1, or 1073741823 for each node. Image Builder automatically assigns the build number to the fourth node.
Patterns: You can use any numeric pattern that adheres to the assignment requirements for the nodes that you can assign. For example, you might choose a software version pattern, such as 1.0.0, or a date, such as 2021.01.01.
public String getSemanticVersion()
The semantic version of the component. This version follows the semantic version syntax.
The semantic version has four nodes: <major>.<minor>.<patch>/<build>. You can assign values for the first three, and can filter on all of them.
Assignment: For the first three nodes you can assign any positive integer value, including zero, with an upper limit of 2^30-1, or 1073741823 for each node. Image Builder automatically assigns the build number to the fourth node.
Patterns: You can use any numeric pattern that adheres to the assignment requirements for the nodes that you can assign. For example, you might choose a software version pattern, such as 1.0.0, or a date, such as 2021.01.01.
The semantic version has four nodes: <major>.<minor>.<patch>/<build>. You can assign values for the first three, and can filter on all of them.
Assignment: For the first three nodes you can assign any positive integer value, including zero, with an upper limit of 2^30-1, or 1073741823 for each node. Image Builder automatically assigns the build number to the fourth node.
Patterns: You can use any numeric pattern that adheres to the assignment requirements for the nodes that you can assign. For example, you might choose a software version pattern, such as 1.0.0, or a date, such as 2021.01.01.
public CreateComponentRequest withSemanticVersion(String semanticVersion)
The semantic version of the component. This version follows the semantic version syntax.
The semantic version has four nodes: <major>.<minor>.<patch>/<build>. You can assign values for the first three, and can filter on all of them.
Assignment: For the first three nodes you can assign any positive integer value, including zero, with an upper limit of 2^30-1, or 1073741823 for each node. Image Builder automatically assigns the build number to the fourth node.
Patterns: You can use any numeric pattern that adheres to the assignment requirements for the nodes that you can assign. For example, you might choose a software version pattern, such as 1.0.0, or a date, such as 2021.01.01.
semanticVersion
- The semantic version of the component. This version follows the semantic version syntax. The semantic version has four nodes: <major>.<minor>.<patch>/<build>. You can assign values for the first three, and can filter on all of them.
Assignment: For the first three nodes you can assign any positive integer value, including zero, with an upper limit of 2^30-1, or 1073741823 for each node. Image Builder automatically assigns the build number to the fourth node.
Patterns: You can use any numeric pattern that adheres to the assignment requirements for the nodes that you can assign. For example, you might choose a software version pattern, such as 1.0.0, or a date, such as 2021.01.01.
public void setDescription(String description)
Describes the contents of the component.
description
- Describes the contents of the component.public String getDescription()
Describes the contents of the component.
public CreateComponentRequest withDescription(String description)
Describes the contents of the component.
description
- Describes the contents of the component.public void setChangeDescription(String changeDescription)
The change description of the component. Describes what change has been made in this version, or what makes this version different from other versions of the component.
changeDescription
- The change description of the component. Describes what change has been made in this version, or what
makes this version different from other versions of the component.public String getChangeDescription()
The change description of the component. Describes what change has been made in this version, or what makes this version different from other versions of the component.
public CreateComponentRequest withChangeDescription(String changeDescription)
The change description of the component. Describes what change has been made in this version, or what makes this version different from other versions of the component.
changeDescription
- The change description of the component. Describes what change has been made in this version, or what
makes this version different from other versions of the component.public void setPlatform(String platform)
The operating system platform of the component.
platform
- The operating system platform of the component.Platform
public String getPlatform()
The operating system platform of the component.
Platform
public CreateComponentRequest withPlatform(String platform)
The operating system platform of the component.
platform
- The operating system platform of the component.Platform
public CreateComponentRequest withPlatform(Platform platform)
The operating system platform of the component.
platform
- The operating system platform of the component.Platform
public List<String> getSupportedOsVersions()
The operating system (OS) version supported by the component. If the OS information is available, a prefix match is performed against the base image OS version during image recipe creation.
public void setSupportedOsVersions(Collection<String> supportedOsVersions)
The operating system (OS) version supported by the component. If the OS information is available, a prefix match is performed against the base image OS version during image recipe creation.
supportedOsVersions
- The operating system (OS) version supported by the component. If the OS information is available, a prefix
match is performed against the base image OS version during image recipe creation.public CreateComponentRequest withSupportedOsVersions(String... supportedOsVersions)
The operating system (OS) version supported by the component. If the OS information is available, a prefix match is performed against the base image OS version during image recipe creation.
NOTE: This method appends the values to the existing list (if any). Use
setSupportedOsVersions(java.util.Collection)
or withSupportedOsVersions(java.util.Collection)
if you want to override the existing values.
supportedOsVersions
- The operating system (OS) version supported by the component. If the OS information is available, a prefix
match is performed against the base image OS version during image recipe creation.public CreateComponentRequest withSupportedOsVersions(Collection<String> supportedOsVersions)
The operating system (OS) version supported by the component. If the OS information is available, a prefix match is performed against the base image OS version during image recipe creation.
supportedOsVersions
- The operating system (OS) version supported by the component. If the OS information is available, a prefix
match is performed against the base image OS version during image recipe creation.public void setData(String data)
Component data
contains inline YAML document content for the component. Alternatively, you can
specify the uri
of a YAML document file stored in Amazon S3. However, you cannot specify both
properties.
data
- Component data
contains inline YAML document content for the component. Alternatively, you
can specify the uri
of a YAML document file stored in Amazon S3. However, you cannot specify
both properties.public String getData()
Component data
contains inline YAML document content for the component. Alternatively, you can
specify the uri
of a YAML document file stored in Amazon S3. However, you cannot specify both
properties.
data
contains inline YAML document content for the component. Alternatively, you
can specify the uri
of a YAML document file stored in Amazon S3. However, you cannot specify
both properties.public CreateComponentRequest withData(String data)
Component data
contains inline YAML document content for the component. Alternatively, you can
specify the uri
of a YAML document file stored in Amazon S3. However, you cannot specify both
properties.
data
- Component data
contains inline YAML document content for the component. Alternatively, you
can specify the uri
of a YAML document file stored in Amazon S3. However, you cannot specify
both properties.public void setUri(String uri)
The uri
of a YAML component document file. This must be an S3 URL (s3://bucket/key
),
and the requester must have permission to access the S3 bucket it points to. If you use Amazon S3, you can
specify component content up to your service quota.
Alternatively, you can specify the YAML document inline, using the component data
property. You
cannot specify both properties.
uri
- The uri
of a YAML component document file. This must be an S3 URL (
s3://bucket/key
), and the requester must have permission to access the S3 bucket it points
to. If you use Amazon S3, you can specify component content up to your service quota.
Alternatively, you can specify the YAML document inline, using the component data
property.
You cannot specify both properties.
public String getUri()
The uri
of a YAML component document file. This must be an S3 URL (s3://bucket/key
),
and the requester must have permission to access the S3 bucket it points to. If you use Amazon S3, you can
specify component content up to your service quota.
Alternatively, you can specify the YAML document inline, using the component data
property. You
cannot specify both properties.
uri
of a YAML component document file. This must be an S3 URL (
s3://bucket/key
), and the requester must have permission to access the S3 bucket it points
to. If you use Amazon S3, you can specify component content up to your service quota.
Alternatively, you can specify the YAML document inline, using the component data
property.
You cannot specify both properties.
public CreateComponentRequest withUri(String uri)
The uri
of a YAML component document file. This must be an S3 URL (s3://bucket/key
),
and the requester must have permission to access the S3 bucket it points to. If you use Amazon S3, you can
specify component content up to your service quota.
Alternatively, you can specify the YAML document inline, using the component data
property. You
cannot specify both properties.
uri
- The uri
of a YAML component document file. This must be an S3 URL (
s3://bucket/key
), and the requester must have permission to access the S3 bucket it points
to. If you use Amazon S3, you can specify component content up to your service quota.
Alternatively, you can specify the YAML document inline, using the component data
property.
You cannot specify both properties.
public void setKmsKeyId(String kmsKeyId)
The ID of the KMS key that is used to encrypt this component.
kmsKeyId
- The ID of the KMS key that is used to encrypt this component.public String getKmsKeyId()
The ID of the KMS key that is used to encrypt this component.
public CreateComponentRequest withKmsKeyId(String kmsKeyId)
The ID of the KMS key that is used to encrypt this component.
kmsKeyId
- The ID of the KMS key that is used to encrypt this component.public Map<String,String> getTags()
The tags that apply to the component.
public void setTags(Map<String,String> tags)
The tags that apply to the component.
tags
- The tags that apply to the component.public CreateComponentRequest withTags(Map<String,String> tags)
The tags that apply to the component.
tags
- The tags that apply to the component.public CreateComponentRequest addTagsEntry(String key, String value)
public CreateComponentRequest clearTagsEntries()
public void setClientToken(String clientToken)
Unique, case-sensitive identifier you provide to ensure idempotency of the request. For more information, see Ensuring idempotency in the Amazon EC2 API Reference.
clientToken
- Unique, case-sensitive identifier you provide to ensure idempotency of the request. For more information,
see Ensuring
idempotency in the Amazon EC2 API Reference.public String getClientToken()
Unique, case-sensitive identifier you provide to ensure idempotency of the request. For more information, see Ensuring idempotency in the Amazon EC2 API Reference.
public CreateComponentRequest withClientToken(String clientToken)
Unique, case-sensitive identifier you provide to ensure idempotency of the request. For more information, see Ensuring idempotency in the Amazon EC2 API Reference.
clientToken
- Unique, case-sensitive identifier you provide to ensure idempotency of the request. For more information,
see Ensuring
idempotency in the Amazon EC2 API Reference.public String toString()
toString
in class Object
Object.toString()
public CreateComponentRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()