/* * 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.connect.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Contains information about a hierarchy group. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class HierarchyGroup implements Serializable, Cloneable, StructuredPojo { /** ** The identifier of the hierarchy group. *
*/ private String id; /** ** The Amazon Resource Name (ARN) of the hierarchy group. *
*/ private String arn; /** ** The name of the hierarchy group. *
*/ private String name; /** ** The identifier of the level in the hierarchy group. *
*/ private String levelId; /** ** Information about the levels in the hierarchy group. *
*/ private HierarchyPath hierarchyPath; /** ** The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", * "key2":"value2"} }. *
*/ private java.util.Map* The identifier of the hierarchy group. *
* * @param id * The identifier of the hierarchy group. */ public void setId(String id) { this.id = id; } /** ** The identifier of the hierarchy group. *
* * @return The identifier of the hierarchy group. */ public String getId() { return this.id; } /** ** The identifier of the hierarchy group. *
* * @param id * The identifier of the hierarchy group. * @return Returns a reference to this object so that method calls can be chained together. */ public HierarchyGroup withId(String id) { setId(id); return this; } /** ** The Amazon Resource Name (ARN) of the hierarchy group. *
* * @param arn * The Amazon Resource Name (ARN) of the hierarchy group. */ public void setArn(String arn) { this.arn = arn; } /** ** The Amazon Resource Name (ARN) of the hierarchy group. *
* * @return The Amazon Resource Name (ARN) of the hierarchy group. */ public String getArn() { return this.arn; } /** ** The Amazon Resource Name (ARN) of the hierarchy group. *
* * @param arn * The Amazon Resource Name (ARN) of the hierarchy group. * @return Returns a reference to this object so that method calls can be chained together. */ public HierarchyGroup withArn(String arn) { setArn(arn); return this; } /** ** The name of the hierarchy group. *
* * @param name * The name of the hierarchy group. */ public void setName(String name) { this.name = name; } /** ** The name of the hierarchy group. *
* * @return The name of the hierarchy group. */ public String getName() { return this.name; } /** ** The name of the hierarchy group. *
* * @param name * The name of the hierarchy group. * @return Returns a reference to this object so that method calls can be chained together. */ public HierarchyGroup withName(String name) { setName(name); return this; } /** ** The identifier of the level in the hierarchy group. *
* * @param levelId * The identifier of the level in the hierarchy group. */ public void setLevelId(String levelId) { this.levelId = levelId; } /** ** The identifier of the level in the hierarchy group. *
* * @return The identifier of the level in the hierarchy group. */ public String getLevelId() { return this.levelId; } /** ** The identifier of the level in the hierarchy group. *
* * @param levelId * The identifier of the level in the hierarchy group. * @return Returns a reference to this object so that method calls can be chained together. */ public HierarchyGroup withLevelId(String levelId) { setLevelId(levelId); return this; } /** ** Information about the levels in the hierarchy group. *
* * @param hierarchyPath * Information about the levels in the hierarchy group. */ public void setHierarchyPath(HierarchyPath hierarchyPath) { this.hierarchyPath = hierarchyPath; } /** ** Information about the levels in the hierarchy group. *
* * @return Information about the levels in the hierarchy group. */ public HierarchyPath getHierarchyPath() { return this.hierarchyPath; } /** ** Information about the levels in the hierarchy group. *
* * @param hierarchyPath * Information about the levels in the hierarchy group. * @return Returns a reference to this object so that method calls can be chained together. */ public HierarchyGroup withHierarchyPath(HierarchyPath hierarchyPath) { setHierarchyPath(hierarchyPath); return this; } /** ** The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", * "key2":"value2"} }. *
* * @return The tags used to organize, track, or control access for this resource. For example, { "tags": * {"key1":"value1", "key2":"value2"} }. */ public java.util.Map* The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", * "key2":"value2"} }. *
* * @param tags * The tags used to organize, track, or control access for this resource. For example, { "tags": * {"key1":"value1", "key2":"value2"} }. */ public void setTags(java.util.Map* The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", * "key2":"value2"} }. *
* * @param tags * The tags used to organize, track, or control access for this resource. For example, { "tags": * {"key1":"value1", "key2":"value2"} }. * @return Returns a reference to this object so that method calls can be chained together. */ public HierarchyGroup withTags(java.util.Map