/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace MemoryDB { namespace Model { /** */ class CreateACLRequest : public MemoryDBRequest { public: AWS_MEMORYDB_API CreateACLRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "CreateACL"; } AWS_MEMORYDB_API Aws::String SerializePayload() const override; AWS_MEMORYDB_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The name of the Access Control List.

*/ inline const Aws::String& GetACLName() const{ return m_aCLName; } /** *

The name of the Access Control List.

*/ inline bool ACLNameHasBeenSet() const { return m_aCLNameHasBeenSet; } /** *

The name of the Access Control List.

*/ inline void SetACLName(const Aws::String& value) { m_aCLNameHasBeenSet = true; m_aCLName = value; } /** *

The name of the Access Control List.

*/ inline void SetACLName(Aws::String&& value) { m_aCLNameHasBeenSet = true; m_aCLName = std::move(value); } /** *

The name of the Access Control List.

*/ inline void SetACLName(const char* value) { m_aCLNameHasBeenSet = true; m_aCLName.assign(value); } /** *

The name of the Access Control List.

*/ inline CreateACLRequest& WithACLName(const Aws::String& value) { SetACLName(value); return *this;} /** *

The name of the Access Control List.

*/ inline CreateACLRequest& WithACLName(Aws::String&& value) { SetACLName(std::move(value)); return *this;} /** *

The name of the Access Control List.

*/ inline CreateACLRequest& WithACLName(const char* value) { SetACLName(value); return *this;} /** *

The list of users that belong to the Access Control List.

*/ inline const Aws::Vector& GetUserNames() const{ return m_userNames; } /** *

The list of users that belong to the Access Control List.

*/ inline bool UserNamesHasBeenSet() const { return m_userNamesHasBeenSet; } /** *

The list of users that belong to the Access Control List.

*/ inline void SetUserNames(const Aws::Vector& value) { m_userNamesHasBeenSet = true; m_userNames = value; } /** *

The list of users that belong to the Access Control List.

*/ inline void SetUserNames(Aws::Vector&& value) { m_userNamesHasBeenSet = true; m_userNames = std::move(value); } /** *

The list of users that belong to the Access Control List.

*/ inline CreateACLRequest& WithUserNames(const Aws::Vector& value) { SetUserNames(value); return *this;} /** *

The list of users that belong to the Access Control List.

*/ inline CreateACLRequest& WithUserNames(Aws::Vector&& value) { SetUserNames(std::move(value)); return *this;} /** *

The list of users that belong to the Access Control List.

*/ inline CreateACLRequest& AddUserNames(const Aws::String& value) { m_userNamesHasBeenSet = true; m_userNames.push_back(value); return *this; } /** *

The list of users that belong to the Access Control List.

*/ inline CreateACLRequest& AddUserNames(Aws::String&& value) { m_userNamesHasBeenSet = true; m_userNames.push_back(std::move(value)); return *this; } /** *

The list of users that belong to the Access Control List.

*/ inline CreateACLRequest& AddUserNames(const char* value) { m_userNamesHasBeenSet = true; m_userNames.push_back(value); return *this; } /** *

A list of tags to be added to this resource. A tag is a key-value pair. A tag * key must be accompanied by a tag value, although null is accepted.

*/ inline const Aws::Vector& GetTags() const{ return m_tags; } /** *

A list of tags to be added to this resource. A tag is a key-value pair. A tag * key must be accompanied by a tag value, although null is accepted.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

A list of tags to be added to this resource. A tag is a key-value pair. A tag * key must be accompanied by a tag value, although null is accepted.

*/ inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

A list of tags to be added to this resource. A tag is a key-value pair. A tag * key must be accompanied by a tag value, although null is accepted.

*/ inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

A list of tags to be added to this resource. A tag is a key-value pair. A tag * key must be accompanied by a tag value, although null is accepted.

*/ inline CreateACLRequest& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

A list of tags to be added to this resource. A tag is a key-value pair. A tag * key must be accompanied by a tag value, although null is accepted.

*/ inline CreateACLRequest& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} /** *

A list of tags to be added to this resource. A tag is a key-value pair. A tag * key must be accompanied by a tag value, although null is accepted.

*/ inline CreateACLRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

A list of tags to be added to this resource. A tag is a key-value pair. A tag * key must be accompanied by a tag value, although null is accepted.

*/ inline CreateACLRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_aCLName; bool m_aCLNameHasBeenSet = false; Aws::Vector m_userNames; bool m_userNamesHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace MemoryDB } // namespace Aws