/* * 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.fis.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Describes a target for an experiment template. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class ExperimentTemplateTarget implements Serializable, Cloneable, StructuredPojo { /** ** The resource type. *
*/ private String resourceType; /** ** The Amazon Resource Names (ARNs) of the targets. *
*/ private java.util.List* The tags for the target resources. *
*/ private java.util.Map* The filters to apply to identify target resources using specific attributes. *
*/ private java.util.List* Scopes the identified resources to a specific count or percentage. *
*/ private String selectionMode; /** ** The resource type parameters. *
*/ private java.util.Map* The resource type. *
* * @param resourceType * The resource type. */ public void setResourceType(String resourceType) { this.resourceType = resourceType; } /** ** The resource type. *
* * @return The resource type. */ public String getResourceType() { return this.resourceType; } /** ** The resource type. *
* * @param resourceType * The resource type. * @return Returns a reference to this object so that method calls can be chained together. */ public ExperimentTemplateTarget withResourceType(String resourceType) { setResourceType(resourceType); return this; } /** ** The Amazon Resource Names (ARNs) of the targets. *
* * @return The Amazon Resource Names (ARNs) of the targets. */ public java.util.List* The Amazon Resource Names (ARNs) of the targets. *
* * @param resourceArns * The Amazon Resource Names (ARNs) of the targets. */ public void setResourceArns(java.util.Collection* The Amazon Resource Names (ARNs) of the targets. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setResourceArns(java.util.Collection)} or {@link #withResourceArns(java.util.Collection)} if you want to * override the existing values. *
* * @param resourceArns * The Amazon Resource Names (ARNs) of the targets. * @return Returns a reference to this object so that method calls can be chained together. */ public ExperimentTemplateTarget withResourceArns(String... resourceArns) { if (this.resourceArns == null) { setResourceArns(new java.util.ArrayList* The Amazon Resource Names (ARNs) of the targets. *
* * @param resourceArns * The Amazon Resource Names (ARNs) of the targets. * @return Returns a reference to this object so that method calls can be chained together. */ public ExperimentTemplateTarget withResourceArns(java.util.Collection* The tags for the target resources. *
* * @return The tags for the target resources. */ public java.util.Map* The tags for the target resources. *
* * @param resourceTags * The tags for the target resources. */ public void setResourceTags(java.util.Map* The tags for the target resources. *
* * @param resourceTags * The tags for the target resources. * @return Returns a reference to this object so that method calls can be chained together. */ public ExperimentTemplateTarget withResourceTags(java.util.Map* The filters to apply to identify target resources using specific attributes. *
* * @return The filters to apply to identify target resources using specific attributes. */ public java.util.List* The filters to apply to identify target resources using specific attributes. *
* * @param filters * The filters to apply to identify target resources using specific attributes. */ public void setFilters(java.util.Collection* The filters to apply to identify target resources using specific attributes. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setFilters(java.util.Collection)} or {@link #withFilters(java.util.Collection)} if you want to override * the existing values. *
* * @param filters * The filters to apply to identify target resources using specific attributes. * @return Returns a reference to this object so that method calls can be chained together. */ public ExperimentTemplateTarget withFilters(ExperimentTemplateTargetFilter... filters) { if (this.filters == null) { setFilters(new java.util.ArrayList* The filters to apply to identify target resources using specific attributes. *
* * @param filters * The filters to apply to identify target resources using specific attributes. * @return Returns a reference to this object so that method calls can be chained together. */ public ExperimentTemplateTarget withFilters(java.util.Collection* Scopes the identified resources to a specific count or percentage. *
* * @param selectionMode * Scopes the identified resources to a specific count or percentage. */ public void setSelectionMode(String selectionMode) { this.selectionMode = selectionMode; } /** ** Scopes the identified resources to a specific count or percentage. *
* * @return Scopes the identified resources to a specific count or percentage. */ public String getSelectionMode() { return this.selectionMode; } /** ** Scopes the identified resources to a specific count or percentage. *
* * @param selectionMode * Scopes the identified resources to a specific count or percentage. * @return Returns a reference to this object so that method calls can be chained together. */ public ExperimentTemplateTarget withSelectionMode(String selectionMode) { setSelectionMode(selectionMode); return this; } /** ** The resource type parameters. *
* * @return The resource type parameters. */ public java.util.Map* The resource type parameters. *
* * @param parameters * The resource type parameters. */ public void setParameters(java.util.Map* The resource type parameters. *
* * @param parameters * The resource type parameters. * @return Returns a reference to this object so that method calls can be chained together. */ public ExperimentTemplateTarget withParameters(java.util.Map