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

com.amazonaws.services.launchwizard.model.WorkloadDeploymentPatternData 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.launchwizard.model;

import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* The data that details a workload deployment pattern. *

* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class WorkloadDeploymentPatternData implements Serializable, Cloneable, StructuredPojo { /** *

* The name of the deployment pattern. *

*/ private String deploymentPatternName; /** *

* The description of the deployment pattern. *

*/ private String description; /** *

* The display name of the deployment pattern. *

*/ private String displayName; /** *

* The settings specified for the deployment. These settings define how to deploy and configure your resources * created by the deployment. For more information about the specifications required for creating a deployment for a * SAP workload, see SAP * deployment specifications. To retrieve the specifications required to create a deployment for other * workloads, use the * GetWorkloadDeploymentPattern operation. *

*/ private java.util.List specifications; /** *

* The status of the deployment pattern. *

*/ private String status; /** *

* The status message of the deployment pattern. *

*/ private String statusMessage; /** *

* The workload name of the deployment pattern. *

*/ private String workloadName; /** *

* The workload version name of the deployment pattern. *

*/ private String workloadVersionName; /** *

* The name of the deployment pattern. *

* * @param deploymentPatternName * The name of the deployment pattern. */ public void setDeploymentPatternName(String deploymentPatternName) { this.deploymentPatternName = deploymentPatternName; } /** *

* The name of the deployment pattern. *

* * @return The name of the deployment pattern. */ public String getDeploymentPatternName() { return this.deploymentPatternName; } /** *

* The name of the deployment pattern. *

* * @param deploymentPatternName * The name of the deployment pattern. * @return Returns a reference to this object so that method calls can be chained together. */ public WorkloadDeploymentPatternData withDeploymentPatternName(String deploymentPatternName) { setDeploymentPatternName(deploymentPatternName); return this; } /** *

* The description of the deployment pattern. *

* * @param description * The description of the deployment pattern. */ public void setDescription(String description) { this.description = description; } /** *

* The description of the deployment pattern. *

* * @return The description of the deployment pattern. */ public String getDescription() { return this.description; } /** *

* The description of the deployment pattern. *

* * @param description * The description of the deployment pattern. * @return Returns a reference to this object so that method calls can be chained together. */ public WorkloadDeploymentPatternData withDescription(String description) { setDescription(description); return this; } /** *

* The display name of the deployment pattern. *

* * @param displayName * The display name of the deployment pattern. */ public void setDisplayName(String displayName) { this.displayName = displayName; } /** *

* The display name of the deployment pattern. *

* * @return The display name of the deployment pattern. */ public String getDisplayName() { return this.displayName; } /** *

* The display name of the deployment pattern. *

* * @param displayName * The display name of the deployment pattern. * @return Returns a reference to this object so that method calls can be chained together. */ public WorkloadDeploymentPatternData withDisplayName(String displayName) { setDisplayName(displayName); return this; } /** *

* The settings specified for the deployment. These settings define how to deploy and configure your resources * created by the deployment. For more information about the specifications required for creating a deployment for a * SAP workload, see SAP * deployment specifications. To retrieve the specifications required to create a deployment for other * workloads, use the * GetWorkloadDeploymentPattern operation. *

* * @return The settings specified for the deployment. These settings define how to deploy and configure your * resources created by the deployment. For more information about the specifications required for creating * a deployment for a SAP workload, see SAP * deployment specifications. To retrieve the specifications required to create a deployment for other * workloads, use the * GetWorkloadDeploymentPattern operation. */ public java.util.List getSpecifications() { return specifications; } /** *

* The settings specified for the deployment. These settings define how to deploy and configure your resources * created by the deployment. For more information about the specifications required for creating a deployment for a * SAP workload, see SAP * deployment specifications. To retrieve the specifications required to create a deployment for other * workloads, use the * GetWorkloadDeploymentPattern operation. *

* * @param specifications * The settings specified for the deployment. These settings define how to deploy and configure your * resources created by the deployment. For more information about the specifications required for creating a * deployment for a SAP workload, see SAP * deployment specifications. To retrieve the specifications required to create a deployment for other * workloads, use the * GetWorkloadDeploymentPattern operation. */ public void setSpecifications(java.util.Collection specifications) { if (specifications == null) { this.specifications = null; return; } this.specifications = new java.util.ArrayList(specifications); } /** *

* The settings specified for the deployment. These settings define how to deploy and configure your resources * created by the deployment. For more information about the specifications required for creating a deployment for a * SAP workload, see SAP * deployment specifications. To retrieve the specifications required to create a deployment for other * workloads, use the * GetWorkloadDeploymentPattern operation. *

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setSpecifications(java.util.Collection)} or {@link #withSpecifications(java.util.Collection)} if you want * to override the existing values. *

* * @param specifications * The settings specified for the deployment. These settings define how to deploy and configure your * resources created by the deployment. For more information about the specifications required for creating a * deployment for a SAP workload, see SAP * deployment specifications. To retrieve the specifications required to create a deployment for other * workloads, use the * GetWorkloadDeploymentPattern operation. * @return Returns a reference to this object so that method calls can be chained together. */ public WorkloadDeploymentPatternData withSpecifications(DeploymentSpecificationsField... specifications) { if (this.specifications == null) { setSpecifications(new java.util.ArrayList(specifications.length)); } for (DeploymentSpecificationsField ele : specifications) { this.specifications.add(ele); } return this; } /** *

* The settings specified for the deployment. These settings define how to deploy and configure your resources * created by the deployment. For more information about the specifications required for creating a deployment for a * SAP workload, see SAP * deployment specifications. To retrieve the specifications required to create a deployment for other * workloads, use the * GetWorkloadDeploymentPattern operation. *

* * @param specifications * The settings specified for the deployment. These settings define how to deploy and configure your * resources created by the deployment. For more information about the specifications required for creating a * deployment for a SAP workload, see SAP * deployment specifications. To retrieve the specifications required to create a deployment for other * workloads, use the * GetWorkloadDeploymentPattern operation. * @return Returns a reference to this object so that method calls can be chained together. */ public WorkloadDeploymentPatternData withSpecifications(java.util.Collection specifications) { setSpecifications(specifications); return this; } /** *

* The status of the deployment pattern. *

* * @param status * The status of the deployment pattern. * @see WorkloadDeploymentPatternStatus */ public void setStatus(String status) { this.status = status; } /** *

* The status of the deployment pattern. *

* * @return The status of the deployment pattern. * @see WorkloadDeploymentPatternStatus */ public String getStatus() { return this.status; } /** *

* The status of the deployment pattern. *

* * @param status * The status of the deployment pattern. * @return Returns a reference to this object so that method calls can be chained together. * @see WorkloadDeploymentPatternStatus */ public WorkloadDeploymentPatternData withStatus(String status) { setStatus(status); return this; } /** *

* The status of the deployment pattern. *

* * @param status * The status of the deployment pattern. * @return Returns a reference to this object so that method calls can be chained together. * @see WorkloadDeploymentPatternStatus */ public WorkloadDeploymentPatternData withStatus(WorkloadDeploymentPatternStatus status) { this.status = status.toString(); return this; } /** *

* The status message of the deployment pattern. *

* * @param statusMessage * The status message of the deployment pattern. */ public void setStatusMessage(String statusMessage) { this.statusMessage = statusMessage; } /** *

* The status message of the deployment pattern. *

* * @return The status message of the deployment pattern. */ public String getStatusMessage() { return this.statusMessage; } /** *

* The status message of the deployment pattern. *

* * @param statusMessage * The status message of the deployment pattern. * @return Returns a reference to this object so that method calls can be chained together. */ public WorkloadDeploymentPatternData withStatusMessage(String statusMessage) { setStatusMessage(statusMessage); return this; } /** *

* The workload name of the deployment pattern. *

* * @param workloadName * The workload name of the deployment pattern. */ public void setWorkloadName(String workloadName) { this.workloadName = workloadName; } /** *

* The workload name of the deployment pattern. *

* * @return The workload name of the deployment pattern. */ public String getWorkloadName() { return this.workloadName; } /** *

* The workload name of the deployment pattern. *

* * @param workloadName * The workload name of the deployment pattern. * @return Returns a reference to this object so that method calls can be chained together. */ public WorkloadDeploymentPatternData withWorkloadName(String workloadName) { setWorkloadName(workloadName); return this; } /** *

* The workload version name of the deployment pattern. *

* * @param workloadVersionName * The workload version name of the deployment pattern. */ public void setWorkloadVersionName(String workloadVersionName) { this.workloadVersionName = workloadVersionName; } /** *

* The workload version name of the deployment pattern. *

* * @return The workload version name of the deployment pattern. */ public String getWorkloadVersionName() { return this.workloadVersionName; } /** *

* The workload version name of the deployment pattern. *

* * @param workloadVersionName * The workload version name of the deployment pattern. * @return Returns a reference to this object so that method calls can be chained together. */ public WorkloadDeploymentPatternData withWorkloadVersionName(String workloadVersionName) { setWorkloadVersionName(workloadVersionName); 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 (getDeploymentPatternName() != null) sb.append("DeploymentPatternName: ").append(getDeploymentPatternName()).append(","); if (getDescription() != null) sb.append("Description: ").append(getDescription()).append(","); if (getDisplayName() != null) sb.append("DisplayName: ").append(getDisplayName()).append(","); if (getSpecifications() != null) sb.append("Specifications: ").append(getSpecifications()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getStatusMessage() != null) sb.append("StatusMessage: ").append(getStatusMessage()).append(","); if (getWorkloadName() != null) sb.append("WorkloadName: ").append(getWorkloadName()).append(","); if (getWorkloadVersionName() != null) sb.append("WorkloadVersionName: ").append(getWorkloadVersionName()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof WorkloadDeploymentPatternData == false) return false; WorkloadDeploymentPatternData other = (WorkloadDeploymentPatternData) obj; if (other.getDeploymentPatternName() == null ^ this.getDeploymentPatternName() == null) return false; if (other.getDeploymentPatternName() != null && other.getDeploymentPatternName().equals(this.getDeploymentPatternName()) == 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.getDisplayName() == null ^ this.getDisplayName() == null) return false; if (other.getDisplayName() != null && other.getDisplayName().equals(this.getDisplayName()) == false) return false; if (other.getSpecifications() == null ^ this.getSpecifications() == null) return false; if (other.getSpecifications() != null && other.getSpecifications().equals(this.getSpecifications()) == false) return false; if (other.getStatus() == null ^ this.getStatus() == null) return false; if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) return false; if (other.getStatusMessage() == null ^ this.getStatusMessage() == null) return false; if (other.getStatusMessage() != null && other.getStatusMessage().equals(this.getStatusMessage()) == false) return false; if (other.getWorkloadName() == null ^ this.getWorkloadName() == null) return false; if (other.getWorkloadName() != null && other.getWorkloadName().equals(this.getWorkloadName()) == false) return false; if (other.getWorkloadVersionName() == null ^ this.getWorkloadVersionName() == null) return false; if (other.getWorkloadVersionName() != null && other.getWorkloadVersionName().equals(this.getWorkloadVersionName()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getDeploymentPatternName() == null) ? 0 : getDeploymentPatternName().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getDisplayName() == null) ? 0 : getDisplayName().hashCode()); hashCode = prime * hashCode + ((getSpecifications() == null) ? 0 : getSpecifications().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getStatusMessage() == null) ? 0 : getStatusMessage().hashCode()); hashCode = prime * hashCode + ((getWorkloadName() == null) ? 0 : getWorkloadName().hashCode()); hashCode = prime * hashCode + ((getWorkloadVersionName() == null) ? 0 : getWorkloadVersionName().hashCode()); return hashCode; } @Override public WorkloadDeploymentPatternData clone() { try { return (WorkloadDeploymentPatternData) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } @com.amazonaws.annotation.SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { com.amazonaws.services.launchwizard.model.transform.WorkloadDeploymentPatternDataMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy