/* * Copyright 2018-2023 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.wellarchitected.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* A choice available to answer question. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class Choice implements Serializable, Cloneable, StructuredPojo { private String choiceId; private String title; private String description; /** ** The helpful resource (both text and URL) for a particular choice. *
** This field only applies to custom lenses. Each choice can have only one helpful resource. *
*/ private ChoiceContent helpfulResource; /** ** The improvement plan (both text and URL) for a particular choice. *
** This field only applies to custom lenses. Each choice can have only one improvement plan. *
*/ private ChoiceContent improvementPlan; /** ** The additional resources for a choice in a custom lens. *
*
* A choice can have up to two additional resources: one of type HELPFUL_RESOURCE
, one of type
* IMPROVEMENT_PLAN
, or both.
*
* The helpful resource (both text and URL) for a particular choice. *
** This field only applies to custom lenses. Each choice can have only one helpful resource. *
* * @param helpfulResource * The helpful resource (both text and URL) for a particular choice. ** This field only applies to custom lenses. Each choice can have only one helpful resource. */ public void setHelpfulResource(ChoiceContent helpfulResource) { this.helpfulResource = helpfulResource; } /** *
* The helpful resource (both text and URL) for a particular choice. *
** This field only applies to custom lenses. Each choice can have only one helpful resource. *
* * @return The helpful resource (both text and URL) for a particular choice. ** This field only applies to custom lenses. Each choice can have only one helpful resource. */ public ChoiceContent getHelpfulResource() { return this.helpfulResource; } /** *
* The helpful resource (both text and URL) for a particular choice. *
** This field only applies to custom lenses. Each choice can have only one helpful resource. *
* * @param helpfulResource * The helpful resource (both text and URL) for a particular choice. ** This field only applies to custom lenses. Each choice can have only one helpful resource. * @return Returns a reference to this object so that method calls can be chained together. */ public Choice withHelpfulResource(ChoiceContent helpfulResource) { setHelpfulResource(helpfulResource); return this; } /** *
* The improvement plan (both text and URL) for a particular choice. *
** This field only applies to custom lenses. Each choice can have only one improvement plan. *
* * @param improvementPlan * The improvement plan (both text and URL) for a particular choice. ** This field only applies to custom lenses. Each choice can have only one improvement plan. */ public void setImprovementPlan(ChoiceContent improvementPlan) { this.improvementPlan = improvementPlan; } /** *
* The improvement plan (both text and URL) for a particular choice. *
** This field only applies to custom lenses. Each choice can have only one improvement plan. *
* * @return The improvement plan (both text and URL) for a particular choice. ** This field only applies to custom lenses. Each choice can have only one improvement plan. */ public ChoiceContent getImprovementPlan() { return this.improvementPlan; } /** *
* The improvement plan (both text and URL) for a particular choice. *
** This field only applies to custom lenses. Each choice can have only one improvement plan. *
* * @param improvementPlan * The improvement plan (both text and URL) for a particular choice. ** This field only applies to custom lenses. Each choice can have only one improvement plan. * @return Returns a reference to this object so that method calls can be chained together. */ public Choice withImprovementPlan(ChoiceContent improvementPlan) { setImprovementPlan(improvementPlan); return this; } /** *
* The additional resources for a choice in a custom lens. *
*
* A choice can have up to two additional resources: one of type HELPFUL_RESOURCE
, one of type
* IMPROVEMENT_PLAN
, or both.
*
* A choice can have up to two additional resources: one of type
* The additional resources for a choice in a custom lens.
*
* A choice can have up to two additional resources: one of type HELPFUL_RESOURCE
, one of type
* IMPROVEMENT_PLAN
, or both.
*/
public java.util.ListHELPFUL_RESOURCE
, one of type
* IMPROVEMENT_PLAN
, or both.
*
* A choice can have up to two additional resources: one of type
* The additional resources for a choice in a custom lens.
*
* A choice can have up to two additional resources: one of type
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setAdditionalResources(java.util.Collection)} or {@link #withAdditionalResources(java.util.Collection)}
* if you want to override the existing values.
* HELPFUL_RESOURCE
, one of type
* IMPROVEMENT_PLAN
, or both.
*/
public void setAdditionalResources(java.util.CollectionHELPFUL_RESOURCE
, one of type
* IMPROVEMENT_PLAN
, or both.
*
* A choice can have up to two additional resources: one of type
* The additional resources for a choice in a custom lens.
*
* A choice can have up to two additional resources: one of type HELPFUL_RESOURCE
, one of type
* IMPROVEMENT_PLAN
, or both.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Choice withAdditionalResources(AdditionalResources... additionalResources) {
if (this.additionalResources == null) {
setAdditionalResources(new java.util.ArrayListHELPFUL_RESOURCE
, one of type
* IMPROVEMENT_PLAN
, or both.
*
* A choice can have up to two additional resources: one of type HELPFUL_RESOURCE
, one of type
* IMPROVEMENT_PLAN
, or both.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Choice withAdditionalResources(java.util.Collection