/* * 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.simplesystemsmanagement.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; /** * * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class CreateOpsMetadataRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* A resource ID for a new Application Manager application. *
*/ private String resourceId; /** ** Metadata for a new Application Manager application. *
*/ private java.util.Map* Optional metadata that you assign to a resource. You can specify a maximum of five tags for an OpsMetadata * object. Tags enable you to categorize a resource in different ways, such as by purpose, owner, or environment. * For example, you might want to tag an OpsMetadata object to identify an environment or target Amazon Web Services * Region. In this case, you could specify the following key-value pairs: *
*
* Key=Environment,Value=Production
*
* Key=Region,Value=us-east-2
*
* A resource ID for a new Application Manager application. *
* * @param resourceId * A resource ID for a new Application Manager application. */ public void setResourceId(String resourceId) { this.resourceId = resourceId; } /** ** A resource ID for a new Application Manager application. *
* * @return A resource ID for a new Application Manager application. */ public String getResourceId() { return this.resourceId; } /** ** A resource ID for a new Application Manager application. *
* * @param resourceId * A resource ID for a new Application Manager application. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateOpsMetadataRequest withResourceId(String resourceId) { setResourceId(resourceId); return this; } /** ** Metadata for a new Application Manager application. *
* * @return Metadata for a new Application Manager application. */ public java.util.Map* Metadata for a new Application Manager application. *
* * @param metadata * Metadata for a new Application Manager application. */ public void setMetadata(java.util.Map* Metadata for a new Application Manager application. *
* * @param metadata * Metadata for a new Application Manager application. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateOpsMetadataRequest withMetadata(java.util.Map* Optional metadata that you assign to a resource. You can specify a maximum of five tags for an OpsMetadata * object. Tags enable you to categorize a resource in different ways, such as by purpose, owner, or environment. * For example, you might want to tag an OpsMetadata object to identify an environment or target Amazon Web Services * Region. In this case, you could specify the following key-value pairs: *
*
* Key=Environment,Value=Production
*
* Key=Region,Value=us-east-2
*
* Key=Environment,Value=Production
*
* Key=Region,Value=us-east-2
*
* Optional metadata that you assign to a resource. You can specify a maximum of five tags for an OpsMetadata * object. Tags enable you to categorize a resource in different ways, such as by purpose, owner, or environment. * For example, you might want to tag an OpsMetadata object to identify an environment or target Amazon Web Services * Region. In this case, you could specify the following key-value pairs: *
*
* Key=Environment,Value=Production
*
* Key=Region,Value=us-east-2
*
* Key=Environment,Value=Production
*
* Key=Region,Value=us-east-2
*
* Optional metadata that you assign to a resource. You can specify a maximum of five tags for an OpsMetadata * object. Tags enable you to categorize a resource in different ways, such as by purpose, owner, or environment. * For example, you might want to tag an OpsMetadata object to identify an environment or target Amazon Web Services * Region. In this case, you could specify the following key-value pairs: *
*
* Key=Environment,Value=Production
*
* Key=Region,Value=us-east-2
*
* NOTE: This method appends the values to the existing list (if any). Use * {@link #setTags(java.util.Collection)} or {@link #withTags(java.util.Collection)} if you want to override the * existing values. *
* * @param tags * Optional metadata that you assign to a resource. You can specify a maximum of five tags for an OpsMetadata * object. Tags enable you to categorize a resource in different ways, such as by purpose, owner, or * environment. For example, you might want to tag an OpsMetadata object to identify an environment or target * Amazon Web Services Region. In this case, you could specify the following key-value pairs: *
* Key=Environment,Value=Production
*
* Key=Region,Value=us-east-2
*
* Optional metadata that you assign to a resource. You can specify a maximum of five tags for an OpsMetadata * object. Tags enable you to categorize a resource in different ways, such as by purpose, owner, or environment. * For example, you might want to tag an OpsMetadata object to identify an environment or target Amazon Web Services * Region. In this case, you could specify the following key-value pairs: *
*
* Key=Environment,Value=Production
*
* Key=Region,Value=us-east-2
*
* Key=Environment,Value=Production
*
* Key=Region,Value=us-east-2
*