/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Utils { namespace Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace EC2 { namespace Model { /** *

Describes a load permission.

See Also:

AWS * API Reference

*/ class LoadPermissionRequest { public: AWS_EC2_API LoadPermissionRequest(); AWS_EC2_API LoadPermissionRequest(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API LoadPermissionRequest& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const; /** *

The name of the group.

*/ inline const PermissionGroup& GetGroup() const{ return m_group; } /** *

The name of the group.

*/ inline bool GroupHasBeenSet() const { return m_groupHasBeenSet; } /** *

The name of the group.

*/ inline void SetGroup(const PermissionGroup& value) { m_groupHasBeenSet = true; m_group = value; } /** *

The name of the group.

*/ inline void SetGroup(PermissionGroup&& value) { m_groupHasBeenSet = true; m_group = std::move(value); } /** *

The name of the group.

*/ inline LoadPermissionRequest& WithGroup(const PermissionGroup& value) { SetGroup(value); return *this;} /** *

The name of the group.

*/ inline LoadPermissionRequest& WithGroup(PermissionGroup&& value) { SetGroup(std::move(value)); return *this;} /** *

The Amazon Web Services account ID.

*/ inline const Aws::String& GetUserId() const{ return m_userId; } /** *

The Amazon Web Services account ID.

*/ inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; } /** *

The Amazon Web Services account ID.

*/ inline void SetUserId(const Aws::String& value) { m_userIdHasBeenSet = true; m_userId = value; } /** *

The Amazon Web Services account ID.

*/ inline void SetUserId(Aws::String&& value) { m_userIdHasBeenSet = true; m_userId = std::move(value); } /** *

The Amazon Web Services account ID.

*/ inline void SetUserId(const char* value) { m_userIdHasBeenSet = true; m_userId.assign(value); } /** *

The Amazon Web Services account ID.

*/ inline LoadPermissionRequest& WithUserId(const Aws::String& value) { SetUserId(value); return *this;} /** *

The Amazon Web Services account ID.

*/ inline LoadPermissionRequest& WithUserId(Aws::String&& value) { SetUserId(std::move(value)); return *this;} /** *

The Amazon Web Services account ID.

*/ inline LoadPermissionRequest& WithUserId(const char* value) { SetUserId(value); return *this;} private: PermissionGroup m_group; bool m_groupHasBeenSet = false; Aws::String m_userId; bool m_userIdHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws