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

com.amazonaws.services.resiliencehub.model.SopRecommendation Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS Resilience Hub module holds the client classes that are used for communicating with AWS Resilience Hub Service

The newest version!
/*
 * 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.resiliencehub.model;

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

/**
 * 

* Defines a standard operating procedure (SOP) recommendation. *

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

* Name of the Application Component. *

*/ private String appComponentName; /** *

* Description of the SOP recommendation. *

*/ private String description; /** *

* The recommendation items. *

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

* Name of the SOP recommendation. *

*/ private String name; /** *

* Prerequisite for the SOP recommendation. *

*/ private String prerequisite; /** *

* Identifier for the SOP recommendation. *

*/ private String recommendationId; /** *

* Status of the recommended standard operating procedure. *

*/ private String recommendationStatus; /** *

* Reference identifier for the SOP recommendation. *

*/ private String referenceId; /** *

* The service type. *

*/ private String serviceType; /** *

* Name of the Application Component. *

* * @param appComponentName * Name of the Application Component. */ public void setAppComponentName(String appComponentName) { this.appComponentName = appComponentName; } /** *

* Name of the Application Component. *

* * @return Name of the Application Component. */ public String getAppComponentName() { return this.appComponentName; } /** *

* Name of the Application Component. *

* * @param appComponentName * Name of the Application Component. * @return Returns a reference to this object so that method calls can be chained together. */ public SopRecommendation withAppComponentName(String appComponentName) { setAppComponentName(appComponentName); return this; } /** *

* Description of the SOP recommendation. *

* * @param description * Description of the SOP recommendation. */ public void setDescription(String description) { this.description = description; } /** *

* Description of the SOP recommendation. *

* * @return Description of the SOP recommendation. */ public String getDescription() { return this.description; } /** *

* Description of the SOP recommendation. *

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

* The recommendation items. *

* * @return The recommendation items. */ public java.util.List getItems() { return items; } /** *

* The recommendation items. *

* * @param items * The recommendation items. */ public void setItems(java.util.Collection items) { if (items == null) { this.items = null; return; } this.items = new java.util.ArrayList(items); } /** *

* The recommendation items. *

*

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

* * @param items * The recommendation items. * @return Returns a reference to this object so that method calls can be chained together. */ public SopRecommendation withItems(RecommendationItem... items) { if (this.items == null) { setItems(new java.util.ArrayList(items.length)); } for (RecommendationItem ele : items) { this.items.add(ele); } return this; } /** *

* The recommendation items. *

* * @param items * The recommendation items. * @return Returns a reference to this object so that method calls can be chained together. */ public SopRecommendation withItems(java.util.Collection items) { setItems(items); return this; } /** *

* Name of the SOP recommendation. *

* * @param name * Name of the SOP recommendation. */ public void setName(String name) { this.name = name; } /** *

* Name of the SOP recommendation. *

* * @return Name of the SOP recommendation. */ public String getName() { return this.name; } /** *

* Name of the SOP recommendation. *

* * @param name * Name of the SOP recommendation. * @return Returns a reference to this object so that method calls can be chained together. */ public SopRecommendation withName(String name) { setName(name); return this; } /** *

* Prerequisite for the SOP recommendation. *

* * @param prerequisite * Prerequisite for the SOP recommendation. */ public void setPrerequisite(String prerequisite) { this.prerequisite = prerequisite; } /** *

* Prerequisite for the SOP recommendation. *

* * @return Prerequisite for the SOP recommendation. */ public String getPrerequisite() { return this.prerequisite; } /** *

* Prerequisite for the SOP recommendation. *

* * @param prerequisite * Prerequisite for the SOP recommendation. * @return Returns a reference to this object so that method calls can be chained together. */ public SopRecommendation withPrerequisite(String prerequisite) { setPrerequisite(prerequisite); return this; } /** *

* Identifier for the SOP recommendation. *

* * @param recommendationId * Identifier for the SOP recommendation. */ public void setRecommendationId(String recommendationId) { this.recommendationId = recommendationId; } /** *

* Identifier for the SOP recommendation. *

* * @return Identifier for the SOP recommendation. */ public String getRecommendationId() { return this.recommendationId; } /** *

* Identifier for the SOP recommendation. *

* * @param recommendationId * Identifier for the SOP recommendation. * @return Returns a reference to this object so that method calls can be chained together. */ public SopRecommendation withRecommendationId(String recommendationId) { setRecommendationId(recommendationId); return this; } /** *

* Status of the recommended standard operating procedure. *

* * @param recommendationStatus * Status of the recommended standard operating procedure. * @see RecommendationStatus */ public void setRecommendationStatus(String recommendationStatus) { this.recommendationStatus = recommendationStatus; } /** *

* Status of the recommended standard operating procedure. *

* * @return Status of the recommended standard operating procedure. * @see RecommendationStatus */ public String getRecommendationStatus() { return this.recommendationStatus; } /** *

* Status of the recommended standard operating procedure. *

* * @param recommendationStatus * Status of the recommended standard operating procedure. * @return Returns a reference to this object so that method calls can be chained together. * @see RecommendationStatus */ public SopRecommendation withRecommendationStatus(String recommendationStatus) { setRecommendationStatus(recommendationStatus); return this; } /** *

* Status of the recommended standard operating procedure. *

* * @param recommendationStatus * Status of the recommended standard operating procedure. * @return Returns a reference to this object so that method calls can be chained together. * @see RecommendationStatus */ public SopRecommendation withRecommendationStatus(RecommendationStatus recommendationStatus) { this.recommendationStatus = recommendationStatus.toString(); return this; } /** *

* Reference identifier for the SOP recommendation. *

* * @param referenceId * Reference identifier for the SOP recommendation. */ public void setReferenceId(String referenceId) { this.referenceId = referenceId; } /** *

* Reference identifier for the SOP recommendation. *

* * @return Reference identifier for the SOP recommendation. */ public String getReferenceId() { return this.referenceId; } /** *

* Reference identifier for the SOP recommendation. *

* * @param referenceId * Reference identifier for the SOP recommendation. * @return Returns a reference to this object so that method calls can be chained together. */ public SopRecommendation withReferenceId(String referenceId) { setReferenceId(referenceId); return this; } /** *

* The service type. *

* * @param serviceType * The service type. * @see SopServiceType */ public void setServiceType(String serviceType) { this.serviceType = serviceType; } /** *

* The service type. *

* * @return The service type. * @see SopServiceType */ public String getServiceType() { return this.serviceType; } /** *

* The service type. *

* * @param serviceType * The service type. * @return Returns a reference to this object so that method calls can be chained together. * @see SopServiceType */ public SopRecommendation withServiceType(String serviceType) { setServiceType(serviceType); return this; } /** *

* The service type. *

* * @param serviceType * The service type. * @return Returns a reference to this object so that method calls can be chained together. * @see SopServiceType */ public SopRecommendation withServiceType(SopServiceType serviceType) { this.serviceType = serviceType.toString(); 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 (getAppComponentName() != null) sb.append("AppComponentName: ").append(getAppComponentName()).append(","); if (getDescription() != null) sb.append("Description: ").append(getDescription()).append(","); if (getItems() != null) sb.append("Items: ").append(getItems()).append(","); if (getName() != null) sb.append("Name: ").append(getName()).append(","); if (getPrerequisite() != null) sb.append("Prerequisite: ").append(getPrerequisite()).append(","); if (getRecommendationId() != null) sb.append("RecommendationId: ").append(getRecommendationId()).append(","); if (getRecommendationStatus() != null) sb.append("RecommendationStatus: ").append(getRecommendationStatus()).append(","); if (getReferenceId() != null) sb.append("ReferenceId: ").append(getReferenceId()).append(","); if (getServiceType() != null) sb.append("ServiceType: ").append(getServiceType()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof SopRecommendation == false) return false; SopRecommendation other = (SopRecommendation) obj; if (other.getAppComponentName() == null ^ this.getAppComponentName() == null) return false; if (other.getAppComponentName() != null && other.getAppComponentName().equals(this.getAppComponentName()) == 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.getItems() == null ^ this.getItems() == null) return false; if (other.getItems() != null && other.getItems().equals(this.getItems()) == 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.getPrerequisite() == null ^ this.getPrerequisite() == null) return false; if (other.getPrerequisite() != null && other.getPrerequisite().equals(this.getPrerequisite()) == false) return false; if (other.getRecommendationId() == null ^ this.getRecommendationId() == null) return false; if (other.getRecommendationId() != null && other.getRecommendationId().equals(this.getRecommendationId()) == false) return false; if (other.getRecommendationStatus() == null ^ this.getRecommendationStatus() == null) return false; if (other.getRecommendationStatus() != null && other.getRecommendationStatus().equals(this.getRecommendationStatus()) == false) return false; if (other.getReferenceId() == null ^ this.getReferenceId() == null) return false; if (other.getReferenceId() != null && other.getReferenceId().equals(this.getReferenceId()) == false) return false; if (other.getServiceType() == null ^ this.getServiceType() == null) return false; if (other.getServiceType() != null && other.getServiceType().equals(this.getServiceType()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getAppComponentName() == null) ? 0 : getAppComponentName().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getItems() == null) ? 0 : getItems().hashCode()); hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getPrerequisite() == null) ? 0 : getPrerequisite().hashCode()); hashCode = prime * hashCode + ((getRecommendationId() == null) ? 0 : getRecommendationId().hashCode()); hashCode = prime * hashCode + ((getRecommendationStatus() == null) ? 0 : getRecommendationStatus().hashCode()); hashCode = prime * hashCode + ((getReferenceId() == null) ? 0 : getReferenceId().hashCode()); hashCode = prime * hashCode + ((getServiceType() == null) ? 0 : getServiceType().hashCode()); return hashCode; } @Override public SopRecommendation clone() { try { return (SopRecommendation) 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.resiliencehub.model.transform.SopRecommendationMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy