/** * 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 CleanRooms { namespace Model { /** */ class CreateMembershipRequest : public CleanRoomsRequest { public: AWS_CLEANROOMS_API CreateMembershipRequest(); // 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 "CreateMembership"; } AWS_CLEANROOMS_API Aws::String SerializePayload() const override; /** *

The unique ID for the associated collaboration.

*/ inline const Aws::String& GetCollaborationIdentifier() const{ return m_collaborationIdentifier; } /** *

The unique ID for the associated collaboration.

*/ inline bool CollaborationIdentifierHasBeenSet() const { return m_collaborationIdentifierHasBeenSet; } /** *

The unique ID for the associated collaboration.

*/ inline void SetCollaborationIdentifier(const Aws::String& value) { m_collaborationIdentifierHasBeenSet = true; m_collaborationIdentifier = value; } /** *

The unique ID for the associated collaboration.

*/ inline void SetCollaborationIdentifier(Aws::String&& value) { m_collaborationIdentifierHasBeenSet = true; m_collaborationIdentifier = std::move(value); } /** *

The unique ID for the associated collaboration.

*/ inline void SetCollaborationIdentifier(const char* value) { m_collaborationIdentifierHasBeenSet = true; m_collaborationIdentifier.assign(value); } /** *

The unique ID for the associated collaboration.

*/ inline CreateMembershipRequest& WithCollaborationIdentifier(const Aws::String& value) { SetCollaborationIdentifier(value); return *this;} /** *

The unique ID for the associated collaboration.

*/ inline CreateMembershipRequest& WithCollaborationIdentifier(Aws::String&& value) { SetCollaborationIdentifier(std::move(value)); return *this;} /** *

The unique ID for the associated collaboration.

*/ inline CreateMembershipRequest& WithCollaborationIdentifier(const char* value) { SetCollaborationIdentifier(value); return *this;} /** *

An indicator as to whether query logging has been enabled or disabled for the * collaboration.

*/ inline const MembershipQueryLogStatus& GetQueryLogStatus() const{ return m_queryLogStatus; } /** *

An indicator as to whether query logging has been enabled or disabled for the * collaboration.

*/ inline bool QueryLogStatusHasBeenSet() const { return m_queryLogStatusHasBeenSet; } /** *

An indicator as to whether query logging has been enabled or disabled for the * collaboration.

*/ inline void SetQueryLogStatus(const MembershipQueryLogStatus& value) { m_queryLogStatusHasBeenSet = true; m_queryLogStatus = value; } /** *

An indicator as to whether query logging has been enabled or disabled for the * collaboration.

*/ inline void SetQueryLogStatus(MembershipQueryLogStatus&& value) { m_queryLogStatusHasBeenSet = true; m_queryLogStatus = std::move(value); } /** *

An indicator as to whether query logging has been enabled or disabled for the * collaboration.

*/ inline CreateMembershipRequest& WithQueryLogStatus(const MembershipQueryLogStatus& value) { SetQueryLogStatus(value); return *this;} /** *

An indicator as to whether query logging has been enabled or disabled for the * collaboration.

*/ inline CreateMembershipRequest& WithQueryLogStatus(MembershipQueryLogStatus&& value) { SetQueryLogStatus(std::move(value)); return *this;} /** *

An optional label that you can assign to a resource when you create it. Each * tag consists of a key and an optional value, both of which you define. When you * use tagging, you can also use tag-based access control in IAM policies to * control access to this resource.

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

An optional label that you can assign to a resource when you create it. Each * tag consists of a key and an optional value, both of which you define. When you * use tagging, you can also use tag-based access control in IAM policies to * control access to this resource.

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

An optional label that you can assign to a resource when you create it. Each * tag consists of a key and an optional value, both of which you define. When you * use tagging, you can also use tag-based access control in IAM policies to * control access to this resource.

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

An optional label that you can assign to a resource when you create it. Each * tag consists of a key and an optional value, both of which you define. When you * use tagging, you can also use tag-based access control in IAM policies to * control access to this resource.

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

An optional label that you can assign to a resource when you create it. Each * tag consists of a key and an optional value, both of which you define. When you * use tagging, you can also use tag-based access control in IAM policies to * control access to this resource.

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

An optional label that you can assign to a resource when you create it. Each * tag consists of a key and an optional value, both of which you define. When you * use tagging, you can also use tag-based access control in IAM policies to * control access to this resource.

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

An optional label that you can assign to a resource when you create it. Each * tag consists of a key and an optional value, both of which you define. When you * use tagging, you can also use tag-based access control in IAM policies to * control access to this resource.

*/ inline CreateMembershipRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *

An optional label that you can assign to a resource when you create it. Each * tag consists of a key and an optional value, both of which you define. When you * use tagging, you can also use tag-based access control in IAM policies to * control access to this resource.

*/ inline CreateMembershipRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

An optional label that you can assign to a resource when you create it. Each * tag consists of a key and an optional value, both of which you define. When you * use tagging, you can also use tag-based access control in IAM policies to * control access to this resource.

*/ inline CreateMembershipRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

An optional label that you can assign to a resource when you create it. Each * tag consists of a key and an optional value, both of which you define. When you * use tagging, you can also use tag-based access control in IAM policies to * control access to this resource.

*/ inline CreateMembershipRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; } /** *

An optional label that you can assign to a resource when you create it. Each * tag consists of a key and an optional value, both of which you define. When you * use tagging, you can also use tag-based access control in IAM policies to * control access to this resource.

*/ inline CreateMembershipRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

An optional label that you can assign to a resource when you create it. Each * tag consists of a key and an optional value, both of which you define. When you * use tagging, you can also use tag-based access control in IAM policies to * control access to this resource.

*/ inline CreateMembershipRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

An optional label that you can assign to a resource when you create it. Each * tag consists of a key and an optional value, both of which you define. When you * use tagging, you can also use tag-based access control in IAM policies to * control access to this resource.

*/ inline CreateMembershipRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } private: Aws::String m_collaborationIdentifier; bool m_collaborationIdentifierHasBeenSet = false; MembershipQueryLogStatus m_queryLogStatus; bool m_queryLogStatusHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace CleanRooms } // namespace Aws