/* * 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.budgets.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* The Amazon Web Services Systems Manager (SSM) action definition details. *
*/ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class SsmActionDefinition implements Serializable, Cloneable, StructuredPojo { /** ** The action subType. *
*/ private String actionSubType; /** ** The Region to run the SSM document. *
*/ private String region; /** ** The EC2 and RDS instance IDs. *
*/ private java.util.List* The action subType. *
* * @param actionSubType * The action subType. * @see ActionSubType */ public void setActionSubType(String actionSubType) { this.actionSubType = actionSubType; } /** ** The action subType. *
* * @return The action subType. * @see ActionSubType */ public String getActionSubType() { return this.actionSubType; } /** ** The action subType. *
* * @param actionSubType * The action subType. * @return Returns a reference to this object so that method calls can be chained together. * @see ActionSubType */ public SsmActionDefinition withActionSubType(String actionSubType) { setActionSubType(actionSubType); return this; } /** ** The action subType. *
* * @param actionSubType * The action subType. * @return Returns a reference to this object so that method calls can be chained together. * @see ActionSubType */ public SsmActionDefinition withActionSubType(ActionSubType actionSubType) { this.actionSubType = actionSubType.toString(); return this; } /** ** The Region to run the SSM document. *
* * @param region * The Region to run the SSM document. */ public void setRegion(String region) { this.region = region; } /** ** The Region to run the SSM document. *
* * @return The Region to run the SSM document. */ public String getRegion() { return this.region; } /** ** The Region to run the SSM document. *
* * @param region * The Region to run the SSM document. * @return Returns a reference to this object so that method calls can be chained together. */ public SsmActionDefinition withRegion(String region) { setRegion(region); return this; } /** ** The EC2 and RDS instance IDs. *
* * @return The EC2 and RDS instance IDs. */ public java.util.List* The EC2 and RDS instance IDs. *
* * @param instanceIds * The EC2 and RDS instance IDs. */ public void setInstanceIds(java.util.Collection* The EC2 and RDS instance IDs. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setInstanceIds(java.util.Collection)} or {@link #withInstanceIds(java.util.Collection)} if you want to * override the existing values. *
* * @param instanceIds * The EC2 and RDS instance IDs. * @return Returns a reference to this object so that method calls can be chained together. */ public SsmActionDefinition withInstanceIds(String... instanceIds) { if (this.instanceIds == null) { setInstanceIds(new java.util.ArrayList* The EC2 and RDS instance IDs. *
* * @param instanceIds * The EC2 and RDS instance IDs. * @return Returns a reference to this object so that method calls can be chained together. */ public SsmActionDefinition withInstanceIds(java.util.Collection