/* * 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.synthetics.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 CreateGroupRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The name for the group. It can include any Unicode characters. *
** The names for all groups in your account, across all Regions, must be unique. *
*/ private String name; /** ** A list of key-value pairs to associate with the group. You can associate as many as 50 tags with a group. *
** Tags can help you organize and categorize your resources. You can also use them to scope user permissions, by * granting a user permission to access or change only the resources that have certain tag values. *
*/ private java.util.Map* The name for the group. It can include any Unicode characters. *
** The names for all groups in your account, across all Regions, must be unique. *
* * @param name * The name for the group. It can include any Unicode characters. ** The names for all groups in your account, across all Regions, must be unique. */ public void setName(String name) { this.name = name; } /** *
* The name for the group. It can include any Unicode characters. *
** The names for all groups in your account, across all Regions, must be unique. *
* * @return The name for the group. It can include any Unicode characters. ** The names for all groups in your account, across all Regions, must be unique. */ public String getName() { return this.name; } /** *
* The name for the group. It can include any Unicode characters. *
** The names for all groups in your account, across all Regions, must be unique. *
* * @param name * The name for the group. It can include any Unicode characters. ** The names for all groups in your account, across all Regions, must be unique. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateGroupRequest withName(String name) { setName(name); return this; } /** *
* A list of key-value pairs to associate with the group. You can associate as many as 50 tags with a group. *
** Tags can help you organize and categorize your resources. You can also use them to scope user permissions, by * granting a user permission to access or change only the resources that have certain tag values. *
* * @return A list of key-value pairs to associate with the group. You can associate as many as 50 tags with a * group. *
* Tags can help you organize and categorize your resources. You can also use them to scope user
* permissions, by granting a user permission to access or change only the resources that have certain tag
* values.
*/
public java.util.Map
* A list of key-value pairs to associate with the group. You can associate as many as 50 tags with a group.
*
* Tags can help you organize and categorize your resources. You can also use them to scope user permissions, by
* granting a user permission to access or change only the resources that have certain tag values.
*
* Tags can help you organize and categorize your resources. You can also use them to scope user permissions,
* by granting a user permission to access or change only the resources that have certain tag values.
*/
public void setTags(java.util.Map
* A list of key-value pairs to associate with the group. You can associate as many as 50 tags with a group.
*
* Tags can help you organize and categorize your resources. You can also use them to scope user permissions, by
* granting a user permission to access or change only the resources that have certain tag values.
*
* Tags can help you organize and categorize your resources. You can also use them to scope user permissions,
* by granting a user permission to access or change only the resources that have certain tag values.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateGroupRequest withTags(java.util.Map