
com.amazonaws.services.imagebuilder.model.CreateContainerRecipeRequest Maven / Gradle / Ivy
/*
* Copyright 2019-2024 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.imagebuilder.model;
import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.AmazonWebServiceRequest;
/**
*
* @see AWS
* API Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class CreateContainerRecipeRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {
/**
*
* The type of container to create.
*
*/
private String containerType;
/**
*
* The name of the container recipe.
*
*/
private String name;
/**
*
* The description of the container recipe.
*
*/
private String description;
/**
*
* The semantic version of the container recipe. 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.
*
*
*/
private String semanticVersion;
/**
*
* Components for build and test that are included in the container recipe. Recipes require a minimum of one build
* component, and can have a maximum of 20 build and test components in any combination.
*
*/
private java.util.List components;
/**
*
* A group of options that can be used to configure an instance for building and testing container images.
*
*/
private InstanceConfiguration instanceConfiguration;
/**
*
* The Dockerfile template used to build your image as an inline data blob.
*
*/
private String dockerfileTemplateData;
/**
*
* The Amazon S3 URI for the Dockerfile that will be used to build your container image.
*
*/
private String dockerfileTemplateUri;
/**
*
* Specifies the operating system platform when you use a custom base image.
*
*/
private String platformOverride;
/**
*
* Specifies the operating system version for the base image.
*
*/
private String imageOsVersionOverride;
/**
*
* The base image for the container recipe.
*
*/
private String parentImage;
/**
*
* Tags that are attached to the container recipe.
*
*/
private java.util.Map tags;
/**
*
* The working directory for use during build and test workflows.
*
*/
private String workingDirectory;
/**
*
* The destination repository for the container image.
*
*/
private TargetContainerRepository targetRepository;
/**
*
* Identifies which KMS key is used to encrypt the container image.
*
*/
private String kmsKeyId;
/**
*
* Unique, case-sensitive identifier you provide to ensure idempotency of the request. For more information, see Ensuring
* idempotency in the Amazon EC2 API Reference.
*
*/
private String clientToken;
/**
*
* The type of container to create.
*
*
* @param containerType
* The type of container to create.
* @see ContainerType
*/
public void setContainerType(String containerType) {
this.containerType = containerType;
}
/**
*
* The type of container to create.
*
*
* @return The type of container to create.
* @see ContainerType
*/
public String getContainerType() {
return this.containerType;
}
/**
*
* The type of container to create.
*
*
* @param containerType
* The type of container to create.
* @return Returns a reference to this object so that method calls can be chained together.
* @see ContainerType
*/
public CreateContainerRecipeRequest withContainerType(String containerType) {
setContainerType(containerType);
return this;
}
/**
*
* The type of container to create.
*
*
* @param containerType
* The type of container to create.
* @return Returns a reference to this object so that method calls can be chained together.
* @see ContainerType
*/
public CreateContainerRecipeRequest withContainerType(ContainerType containerType) {
this.containerType = containerType.toString();
return this;
}
/**
*
* The name of the container recipe.
*
*
* @param name
* The name of the container recipe.
*/
public void setName(String name) {
this.name = name;
}
/**
*
* The name of the container recipe.
*
*
* @return The name of the container recipe.
*/
public String getName() {
return this.name;
}
/**
*
* The name of the container recipe.
*
*
* @param name
* The name of the container recipe.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateContainerRecipeRequest withName(String name) {
setName(name);
return this;
}
/**
*
* The description of the container recipe.
*
*
* @param description
* The description of the container recipe.
*/
public void setDescription(String description) {
this.description = description;
}
/**
*
* The description of the container recipe.
*
*
* @return The description of the container recipe.
*/
public String getDescription() {
return this.description;
}
/**
*
* The description of the container recipe.
*
*
* @param description
* The description of the container recipe.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateContainerRecipeRequest withDescription(String description) {
setDescription(description);
return this;
}
/**
*
* The semantic version of the container recipe. 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.
*
*
*
* @param semanticVersion
* The semantic version of the container recipe. 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 setSemanticVersion(String semanticVersion) {
this.semanticVersion = semanticVersion;
}
/**
*
* The semantic version of the container recipe. 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.
*
*
*
* @return The semantic version of the container recipe. 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() {
return this.semanticVersion;
}
/**
*
* The semantic version of the container recipe. 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.
*
*
*
* @param semanticVersion
* The semantic version of the container recipe. 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.
*
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateContainerRecipeRequest withSemanticVersion(String semanticVersion) {
setSemanticVersion(semanticVersion);
return this;
}
/**
*
* Components for build and test that are included in the container recipe. Recipes require a minimum of one build
* component, and can have a maximum of 20 build and test components in any combination.
*
*
* @return Components for build and test that are included in the container recipe. Recipes require a minimum of one
* build component, and can have a maximum of 20 build and test components in any combination.
*/
public java.util.List getComponents() {
return components;
}
/**
*
* Components for build and test that are included in the container recipe. Recipes require a minimum of one build
* component, and can have a maximum of 20 build and test components in any combination.
*
*
* @param components
* Components for build and test that are included in the container recipe. Recipes require a minimum of one
* build component, and can have a maximum of 20 build and test components in any combination.
*/
public void setComponents(java.util.Collection components) {
if (components == null) {
this.components = null;
return;
}
this.components = new java.util.ArrayList(components);
}
/**
*
* Components for build and test that are included in the container recipe. Recipes require a minimum of one build
* component, and can have a maximum of 20 build and test components in any combination.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setComponents(java.util.Collection)} or {@link #withComponents(java.util.Collection)} if you want to
* override the existing values.
*
*
* @param components
* Components for build and test that are included in the container recipe. Recipes require a minimum of one
* build component, and can have a maximum of 20 build and test components in any combination.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateContainerRecipeRequest withComponents(ComponentConfiguration... components) {
if (this.components == null) {
setComponents(new java.util.ArrayList(components.length));
}
for (ComponentConfiguration ele : components) {
this.components.add(ele);
}
return this;
}
/**
*
* Components for build and test that are included in the container recipe. Recipes require a minimum of one build
* component, and can have a maximum of 20 build and test components in any combination.
*
*
* @param components
* Components for build and test that are included in the container recipe. Recipes require a minimum of one
* build component, and can have a maximum of 20 build and test components in any combination.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateContainerRecipeRequest withComponents(java.util.Collection components) {
setComponents(components);
return this;
}
/**
*
* A group of options that can be used to configure an instance for building and testing container images.
*
*
* @param instanceConfiguration
* A group of options that can be used to configure an instance for building and testing container images.
*/
public void setInstanceConfiguration(InstanceConfiguration instanceConfiguration) {
this.instanceConfiguration = instanceConfiguration;
}
/**
*
* A group of options that can be used to configure an instance for building and testing container images.
*
*
* @return A group of options that can be used to configure an instance for building and testing container images.
*/
public InstanceConfiguration getInstanceConfiguration() {
return this.instanceConfiguration;
}
/**
*
* A group of options that can be used to configure an instance for building and testing container images.
*
*
* @param instanceConfiguration
* A group of options that can be used to configure an instance for building and testing container images.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateContainerRecipeRequest withInstanceConfiguration(InstanceConfiguration instanceConfiguration) {
setInstanceConfiguration(instanceConfiguration);
return this;
}
/**
*
* The Dockerfile template used to build your image as an inline data blob.
*
*
* @param dockerfileTemplateData
* The Dockerfile template used to build your image as an inline data blob.
*/
public void setDockerfileTemplateData(String dockerfileTemplateData) {
this.dockerfileTemplateData = dockerfileTemplateData;
}
/**
*
* The Dockerfile template used to build your image as an inline data blob.
*
*
* @return The Dockerfile template used to build your image as an inline data blob.
*/
public String getDockerfileTemplateData() {
return this.dockerfileTemplateData;
}
/**
*
* The Dockerfile template used to build your image as an inline data blob.
*
*
* @param dockerfileTemplateData
* The Dockerfile template used to build your image as an inline data blob.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateContainerRecipeRequest withDockerfileTemplateData(String dockerfileTemplateData) {
setDockerfileTemplateData(dockerfileTemplateData);
return this;
}
/**
*
* The Amazon S3 URI for the Dockerfile that will be used to build your container image.
*
*
* @param dockerfileTemplateUri
* The Amazon S3 URI for the Dockerfile that will be used to build your container image.
*/
public void setDockerfileTemplateUri(String dockerfileTemplateUri) {
this.dockerfileTemplateUri = dockerfileTemplateUri;
}
/**
*
* The Amazon S3 URI for the Dockerfile that will be used to build your container image.
*
*
* @return The Amazon S3 URI for the Dockerfile that will be used to build your container image.
*/
public String getDockerfileTemplateUri() {
return this.dockerfileTemplateUri;
}
/**
*
* The Amazon S3 URI for the Dockerfile that will be used to build your container image.
*
*
* @param dockerfileTemplateUri
* The Amazon S3 URI for the Dockerfile that will be used to build your container image.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateContainerRecipeRequest withDockerfileTemplateUri(String dockerfileTemplateUri) {
setDockerfileTemplateUri(dockerfileTemplateUri);
return this;
}
/**
*
* Specifies the operating system platform when you use a custom base image.
*
*
* @param platformOverride
* Specifies the operating system platform when you use a custom base image.
* @see Platform
*/
public void setPlatformOverride(String platformOverride) {
this.platformOverride = platformOverride;
}
/**
*
* Specifies the operating system platform when you use a custom base image.
*
*
* @return Specifies the operating system platform when you use a custom base image.
* @see Platform
*/
public String getPlatformOverride() {
return this.platformOverride;
}
/**
*
* Specifies the operating system platform when you use a custom base image.
*
*
* @param platformOverride
* Specifies the operating system platform when you use a custom base image.
* @return Returns a reference to this object so that method calls can be chained together.
* @see Platform
*/
public CreateContainerRecipeRequest withPlatformOverride(String platformOverride) {
setPlatformOverride(platformOverride);
return this;
}
/**
*
* Specifies the operating system platform when you use a custom base image.
*
*
* @param platformOverride
* Specifies the operating system platform when you use a custom base image.
* @return Returns a reference to this object so that method calls can be chained together.
* @see Platform
*/
public CreateContainerRecipeRequest withPlatformOverride(Platform platformOverride) {
this.platformOverride = platformOverride.toString();
return this;
}
/**
*
* Specifies the operating system version for the base image.
*
*
* @param imageOsVersionOverride
* Specifies the operating system version for the base image.
*/
public void setImageOsVersionOverride(String imageOsVersionOverride) {
this.imageOsVersionOverride = imageOsVersionOverride;
}
/**
*
* Specifies the operating system version for the base image.
*
*
* @return Specifies the operating system version for the base image.
*/
public String getImageOsVersionOverride() {
return this.imageOsVersionOverride;
}
/**
*
* Specifies the operating system version for the base image.
*
*
* @param imageOsVersionOverride
* Specifies the operating system version for the base image.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateContainerRecipeRequest withImageOsVersionOverride(String imageOsVersionOverride) {
setImageOsVersionOverride(imageOsVersionOverride);
return this;
}
/**
*
* The base image for the container recipe.
*
*
* @param parentImage
* The base image for the container recipe.
*/
public void setParentImage(String parentImage) {
this.parentImage = parentImage;
}
/**
*
* The base image for the container recipe.
*
*
* @return The base image for the container recipe.
*/
public String getParentImage() {
return this.parentImage;
}
/**
*
* The base image for the container recipe.
*
*
* @param parentImage
* The base image for the container recipe.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateContainerRecipeRequest withParentImage(String parentImage) {
setParentImage(parentImage);
return this;
}
/**
*
* Tags that are attached to the container recipe.
*
*
* @return Tags that are attached to the container recipe.
*/
public java.util.Map getTags() {
return tags;
}
/**
*
* Tags that are attached to the container recipe.
*
*
* @param tags
* Tags that are attached to the container recipe.
*/
public void setTags(java.util.Map tags) {
this.tags = tags;
}
/**
*
* Tags that are attached to the container recipe.
*
*
* @param tags
* Tags that are attached to the container recipe.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateContainerRecipeRequest withTags(java.util.Map tags) {
setTags(tags);
return this;
}
/**
* Add a single Tags entry
*
* @see CreateContainerRecipeRequest#withTags
* @returns a reference to this object so that method calls can be chained together.
*/
public CreateContainerRecipeRequest addTagsEntry(String key, String value) {
if (null == this.tags) {
this.tags = new java.util.HashMap();
}
if (this.tags.containsKey(key))
throw new IllegalArgumentException("Duplicated keys (" + key.toString() + ") are provided.");
this.tags.put(key, value);
return this;
}
/**
* Removes all the entries added into Tags.
*
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateContainerRecipeRequest clearTagsEntries() {
this.tags = null;
return this;
}
/**
*
* The working directory for use during build and test workflows.
*
*
* @param workingDirectory
* The working directory for use during build and test workflows.
*/
public void setWorkingDirectory(String workingDirectory) {
this.workingDirectory = workingDirectory;
}
/**
*
* The working directory for use during build and test workflows.
*
*
* @return The working directory for use during build and test workflows.
*/
public String getWorkingDirectory() {
return this.workingDirectory;
}
/**
*
* The working directory for use during build and test workflows.
*
*
* @param workingDirectory
* The working directory for use during build and test workflows.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateContainerRecipeRequest withWorkingDirectory(String workingDirectory) {
setWorkingDirectory(workingDirectory);
return this;
}
/**
*
* The destination repository for the container image.
*
*
* @param targetRepository
* The destination repository for the container image.
*/
public void setTargetRepository(TargetContainerRepository targetRepository) {
this.targetRepository = targetRepository;
}
/**
*
* The destination repository for the container image.
*
*
* @return The destination repository for the container image.
*/
public TargetContainerRepository getTargetRepository() {
return this.targetRepository;
}
/**
*
* The destination repository for the container image.
*
*
* @param targetRepository
* The destination repository for the container image.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateContainerRecipeRequest withTargetRepository(TargetContainerRepository targetRepository) {
setTargetRepository(targetRepository);
return this;
}
/**
*
* Identifies which KMS key is used to encrypt the container image.
*
*
* @param kmsKeyId
* Identifies which KMS key is used to encrypt the container image.
*/
public void setKmsKeyId(String kmsKeyId) {
this.kmsKeyId = kmsKeyId;
}
/**
*
* Identifies which KMS key is used to encrypt the container image.
*
*
* @return Identifies which KMS key is used to encrypt the container image.
*/
public String getKmsKeyId() {
return this.kmsKeyId;
}
/**
*
* Identifies which KMS key is used to encrypt the container image.
*
*
* @param kmsKeyId
* Identifies which KMS key is used to encrypt the container image.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateContainerRecipeRequest withKmsKeyId(String kmsKeyId) {
setKmsKeyId(kmsKeyId);
return this;
}
/**
*
* Unique, case-sensitive identifier you provide to ensure idempotency of the request. For more information, see Ensuring
* idempotency in the Amazon EC2 API Reference.
*
*
* @param 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 void setClientToken(String clientToken) {
this.clientToken = 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.
*
*
* @return 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() {
return this.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.
*
*
* @param 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.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateContainerRecipeRequest withClientToken(String clientToken) {
setClientToken(clientToken);
return this;
}
/**
* 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 (getContainerType() != null)
sb.append("ContainerType: ").append(getContainerType()).append(",");
if (getName() != null)
sb.append("Name: ").append(getName()).append(",");
if (getDescription() != null)
sb.append("Description: ").append(getDescription()).append(",");
if (getSemanticVersion() != null)
sb.append("SemanticVersion: ").append(getSemanticVersion()).append(",");
if (getComponents() != null)
sb.append("Components: ").append(getComponents()).append(",");
if (getInstanceConfiguration() != null)
sb.append("InstanceConfiguration: ").append(getInstanceConfiguration()).append(",");
if (getDockerfileTemplateData() != null)
sb.append("DockerfileTemplateData: ").append(getDockerfileTemplateData()).append(",");
if (getDockerfileTemplateUri() != null)
sb.append("DockerfileTemplateUri: ").append(getDockerfileTemplateUri()).append(",");
if (getPlatformOverride() != null)
sb.append("PlatformOverride: ").append(getPlatformOverride()).append(",");
if (getImageOsVersionOverride() != null)
sb.append("ImageOsVersionOverride: ").append(getImageOsVersionOverride()).append(",");
if (getParentImage() != null)
sb.append("ParentImage: ").append(getParentImage()).append(",");
if (getTags() != null)
sb.append("Tags: ").append(getTags()).append(",");
if (getWorkingDirectory() != null)
sb.append("WorkingDirectory: ").append(getWorkingDirectory()).append(",");
if (getTargetRepository() != null)
sb.append("TargetRepository: ").append(getTargetRepository()).append(",");
if (getKmsKeyId() != null)
sb.append("KmsKeyId: ").append(getKmsKeyId()).append(",");
if (getClientToken() != null)
sb.append("ClientToken: ").append(getClientToken());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof CreateContainerRecipeRequest == false)
return false;
CreateContainerRecipeRequest other = (CreateContainerRecipeRequest) obj;
if (other.getContainerType() == null ^ this.getContainerType() == null)
return false;
if (other.getContainerType() != null && other.getContainerType().equals(this.getContainerType()) == false)
return false;
if (other.getName() == null ^ this.getName() == null)
return false;
if (other.getName() != null && other.getName().equals(this.getName()) == false)
return false;
if (other.getDescription() == null ^ this.getDescription() == null)
return false;
if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == false)
return false;
if (other.getSemanticVersion() == null ^ this.getSemanticVersion() == null)
return false;
if (other.getSemanticVersion() != null && other.getSemanticVersion().equals(this.getSemanticVersion()) == false)
return false;
if (other.getComponents() == null ^ this.getComponents() == null)
return false;
if (other.getComponents() != null && other.getComponents().equals(this.getComponents()) == false)
return false;
if (other.getInstanceConfiguration() == null ^ this.getInstanceConfiguration() == null)
return false;
if (other.getInstanceConfiguration() != null && other.getInstanceConfiguration().equals(this.getInstanceConfiguration()) == false)
return false;
if (other.getDockerfileTemplateData() == null ^ this.getDockerfileTemplateData() == null)
return false;
if (other.getDockerfileTemplateData() != null && other.getDockerfileTemplateData().equals(this.getDockerfileTemplateData()) == false)
return false;
if (other.getDockerfileTemplateUri() == null ^ this.getDockerfileTemplateUri() == null)
return false;
if (other.getDockerfileTemplateUri() != null && other.getDockerfileTemplateUri().equals(this.getDockerfileTemplateUri()) == false)
return false;
if (other.getPlatformOverride() == null ^ this.getPlatformOverride() == null)
return false;
if (other.getPlatformOverride() != null && other.getPlatformOverride().equals(this.getPlatformOverride()) == false)
return false;
if (other.getImageOsVersionOverride() == null ^ this.getImageOsVersionOverride() == null)
return false;
if (other.getImageOsVersionOverride() != null && other.getImageOsVersionOverride().equals(this.getImageOsVersionOverride()) == false)
return false;
if (other.getParentImage() == null ^ this.getParentImage() == null)
return false;
if (other.getParentImage() != null && other.getParentImage().equals(this.getParentImage()) == false)
return false;
if (other.getTags() == null ^ this.getTags() == null)
return false;
if (other.getTags() != null && other.getTags().equals(this.getTags()) == false)
return false;
if (other.getWorkingDirectory() == null ^ this.getWorkingDirectory() == null)
return false;
if (other.getWorkingDirectory() != null && other.getWorkingDirectory().equals(this.getWorkingDirectory()) == false)
return false;
if (other.getTargetRepository() == null ^ this.getTargetRepository() == null)
return false;
if (other.getTargetRepository() != null && other.getTargetRepository().equals(this.getTargetRepository()) == false)
return false;
if (other.getKmsKeyId() == null ^ this.getKmsKeyId() == null)
return false;
if (other.getKmsKeyId() != null && other.getKmsKeyId().equals(this.getKmsKeyId()) == false)
return false;
if (other.getClientToken() == null ^ this.getClientToken() == null)
return false;
if (other.getClientToken() != null && other.getClientToken().equals(this.getClientToken()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getContainerType() == null) ? 0 : getContainerType().hashCode());
hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode());
hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode());
hashCode = prime * hashCode + ((getSemanticVersion() == null) ? 0 : getSemanticVersion().hashCode());
hashCode = prime * hashCode + ((getComponents() == null) ? 0 : getComponents().hashCode());
hashCode = prime * hashCode + ((getInstanceConfiguration() == null) ? 0 : getInstanceConfiguration().hashCode());
hashCode = prime * hashCode + ((getDockerfileTemplateData() == null) ? 0 : getDockerfileTemplateData().hashCode());
hashCode = prime * hashCode + ((getDockerfileTemplateUri() == null) ? 0 : getDockerfileTemplateUri().hashCode());
hashCode = prime * hashCode + ((getPlatformOverride() == null) ? 0 : getPlatformOverride().hashCode());
hashCode = prime * hashCode + ((getImageOsVersionOverride() == null) ? 0 : getImageOsVersionOverride().hashCode());
hashCode = prime * hashCode + ((getParentImage() == null) ? 0 : getParentImage().hashCode());
hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode());
hashCode = prime * hashCode + ((getWorkingDirectory() == null) ? 0 : getWorkingDirectory().hashCode());
hashCode = prime * hashCode + ((getTargetRepository() == null) ? 0 : getTargetRepository().hashCode());
hashCode = prime * hashCode + ((getKmsKeyId() == null) ? 0 : getKmsKeyId().hashCode());
hashCode = prime * hashCode + ((getClientToken() == null) ? 0 : getClientToken().hashCode());
return hashCode;
}
@Override
public CreateContainerRecipeRequest clone() {
return (CreateContainerRecipeRequest) super.clone();
}
}