402 lines
16 KiB
C++
402 lines
16 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <aws/ram/RAM_EXPORTS.h>
|
|
#include <aws/ram/RAMRequest.h>
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|
#include <aws/core/utils/memory/stl/AWSVector.h>
|
|
#include <aws/ram/model/Tag.h>
|
|
#include <utility>
|
|
|
|
namespace Aws
|
|
{
|
|
namespace RAM
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
/**
|
|
*/
|
|
class AWS_RAM_API CreateResourceShareRequest : public RAMRequest
|
|
{
|
|
public:
|
|
CreateResourceShareRequest();
|
|
|
|
// 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 "CreateResourceShare"; }
|
|
|
|
Aws::String SerializePayload() const override;
|
|
|
|
|
|
/**
|
|
* <p>The name of the resource share.</p>
|
|
*/
|
|
inline const Aws::String& GetName() const{ return m_name; }
|
|
|
|
/**
|
|
* <p>The name of the resource share.</p>
|
|
*/
|
|
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The name of the resource share.</p>
|
|
*/
|
|
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
|
|
|
|
/**
|
|
* <p>The name of the resource share.</p>
|
|
*/
|
|
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
|
|
|
|
/**
|
|
* <p>The name of the resource share.</p>
|
|
*/
|
|
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
|
|
|
|
/**
|
|
* <p>The name of the resource share.</p>
|
|
*/
|
|
inline CreateResourceShareRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
|
|
|
|
/**
|
|
* <p>The name of the resource share.</p>
|
|
*/
|
|
inline CreateResourceShareRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The name of the resource share.</p>
|
|
*/
|
|
inline CreateResourceShareRequest& WithName(const char* value) { SetName(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The Amazon Resource Names (ARN) of the resources to associate with the
|
|
* resource share.</p>
|
|
*/
|
|
inline const Aws::Vector<Aws::String>& GetResourceArns() const{ return m_resourceArns; }
|
|
|
|
/**
|
|
* <p>The Amazon Resource Names (ARN) of the resources to associate with the
|
|
* resource share.</p>
|
|
*/
|
|
inline bool ResourceArnsHasBeenSet() const { return m_resourceArnsHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The Amazon Resource Names (ARN) of the resources to associate with the
|
|
* resource share.</p>
|
|
*/
|
|
inline void SetResourceArns(const Aws::Vector<Aws::String>& value) { m_resourceArnsHasBeenSet = true; m_resourceArns = value; }
|
|
|
|
/**
|
|
* <p>The Amazon Resource Names (ARN) of the resources to associate with the
|
|
* resource share.</p>
|
|
*/
|
|
inline void SetResourceArns(Aws::Vector<Aws::String>&& value) { m_resourceArnsHasBeenSet = true; m_resourceArns = std::move(value); }
|
|
|
|
/**
|
|
* <p>The Amazon Resource Names (ARN) of the resources to associate with the
|
|
* resource share.</p>
|
|
*/
|
|
inline CreateResourceShareRequest& WithResourceArns(const Aws::Vector<Aws::String>& value) { SetResourceArns(value); return *this;}
|
|
|
|
/**
|
|
* <p>The Amazon Resource Names (ARN) of the resources to associate with the
|
|
* resource share.</p>
|
|
*/
|
|
inline CreateResourceShareRequest& WithResourceArns(Aws::Vector<Aws::String>&& value) { SetResourceArns(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The Amazon Resource Names (ARN) of the resources to associate with the
|
|
* resource share.</p>
|
|
*/
|
|
inline CreateResourceShareRequest& AddResourceArns(const Aws::String& value) { m_resourceArnsHasBeenSet = true; m_resourceArns.push_back(value); return *this; }
|
|
|
|
/**
|
|
* <p>The Amazon Resource Names (ARN) of the resources to associate with the
|
|
* resource share.</p>
|
|
*/
|
|
inline CreateResourceShareRequest& AddResourceArns(Aws::String&& value) { m_resourceArnsHasBeenSet = true; m_resourceArns.push_back(std::move(value)); return *this; }
|
|
|
|
/**
|
|
* <p>The Amazon Resource Names (ARN) of the resources to associate with the
|
|
* resource share.</p>
|
|
*/
|
|
inline CreateResourceShareRequest& AddResourceArns(const char* value) { m_resourceArnsHasBeenSet = true; m_resourceArns.push_back(value); return *this; }
|
|
|
|
|
|
/**
|
|
* <p>The principals to associate with the resource share. The possible values are
|
|
* IDs of AWS accounts, the ARN of an OU or organization from AWS
|
|
* Organizations.</p>
|
|
*/
|
|
inline const Aws::Vector<Aws::String>& GetPrincipals() const{ return m_principals; }
|
|
|
|
/**
|
|
* <p>The principals to associate with the resource share. The possible values are
|
|
* IDs of AWS accounts, the ARN of an OU or organization from AWS
|
|
* Organizations.</p>
|
|
*/
|
|
inline bool PrincipalsHasBeenSet() const { return m_principalsHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The principals to associate with the resource share. The possible values are
|
|
* IDs of AWS accounts, the ARN of an OU or organization from AWS
|
|
* Organizations.</p>
|
|
*/
|
|
inline void SetPrincipals(const Aws::Vector<Aws::String>& value) { m_principalsHasBeenSet = true; m_principals = value; }
|
|
|
|
/**
|
|
* <p>The principals to associate with the resource share. The possible values are
|
|
* IDs of AWS accounts, the ARN of an OU or organization from AWS
|
|
* Organizations.</p>
|
|
*/
|
|
inline void SetPrincipals(Aws::Vector<Aws::String>&& value) { m_principalsHasBeenSet = true; m_principals = std::move(value); }
|
|
|
|
/**
|
|
* <p>The principals to associate with the resource share. The possible values are
|
|
* IDs of AWS accounts, the ARN of an OU or organization from AWS
|
|
* Organizations.</p>
|
|
*/
|
|
inline CreateResourceShareRequest& WithPrincipals(const Aws::Vector<Aws::String>& value) { SetPrincipals(value); return *this;}
|
|
|
|
/**
|
|
* <p>The principals to associate with the resource share. The possible values are
|
|
* IDs of AWS accounts, the ARN of an OU or organization from AWS
|
|
* Organizations.</p>
|
|
*/
|
|
inline CreateResourceShareRequest& WithPrincipals(Aws::Vector<Aws::String>&& value) { SetPrincipals(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The principals to associate with the resource share. The possible values are
|
|
* IDs of AWS accounts, the ARN of an OU or organization from AWS
|
|
* Organizations.</p>
|
|
*/
|
|
inline CreateResourceShareRequest& AddPrincipals(const Aws::String& value) { m_principalsHasBeenSet = true; m_principals.push_back(value); return *this; }
|
|
|
|
/**
|
|
* <p>The principals to associate with the resource share. The possible values are
|
|
* IDs of AWS accounts, the ARN of an OU or organization from AWS
|
|
* Organizations.</p>
|
|
*/
|
|
inline CreateResourceShareRequest& AddPrincipals(Aws::String&& value) { m_principalsHasBeenSet = true; m_principals.push_back(std::move(value)); return *this; }
|
|
|
|
/**
|
|
* <p>The principals to associate with the resource share. The possible values are
|
|
* IDs of AWS accounts, the ARN of an OU or organization from AWS
|
|
* Organizations.</p>
|
|
*/
|
|
inline CreateResourceShareRequest& AddPrincipals(const char* value) { m_principalsHasBeenSet = true; m_principals.push_back(value); return *this; }
|
|
|
|
|
|
/**
|
|
* <p>One or more tags.</p>
|
|
*/
|
|
inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
|
|
|
|
/**
|
|
* <p>One or more tags.</p>
|
|
*/
|
|
inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
|
|
|
|
/**
|
|
* <p>One or more tags.</p>
|
|
*/
|
|
inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
|
|
|
|
/**
|
|
* <p>One or more tags.</p>
|
|
*/
|
|
inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
|
|
|
|
/**
|
|
* <p>One or more tags.</p>
|
|
*/
|
|
inline CreateResourceShareRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
|
|
|
|
/**
|
|
* <p>One or more tags.</p>
|
|
*/
|
|
inline CreateResourceShareRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>One or more tags.</p>
|
|
*/
|
|
inline CreateResourceShareRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
|
|
|
|
/**
|
|
* <p>One or more tags.</p>
|
|
*/
|
|
inline CreateResourceShareRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
|
|
|
|
|
|
/**
|
|
* <p>Indicates whether principals outside your AWS organization can be associated
|
|
* with a resource share.</p>
|
|
*/
|
|
inline bool GetAllowExternalPrincipals() const{ return m_allowExternalPrincipals; }
|
|
|
|
/**
|
|
* <p>Indicates whether principals outside your AWS organization can be associated
|
|
* with a resource share.</p>
|
|
*/
|
|
inline bool AllowExternalPrincipalsHasBeenSet() const { return m_allowExternalPrincipalsHasBeenSet; }
|
|
|
|
/**
|
|
* <p>Indicates whether principals outside your AWS organization can be associated
|
|
* with a resource share.</p>
|
|
*/
|
|
inline void SetAllowExternalPrincipals(bool value) { m_allowExternalPrincipalsHasBeenSet = true; m_allowExternalPrincipals = value; }
|
|
|
|
/**
|
|
* <p>Indicates whether principals outside your AWS organization can be associated
|
|
* with a resource share.</p>
|
|
*/
|
|
inline CreateResourceShareRequest& WithAllowExternalPrincipals(bool value) { SetAllowExternalPrincipals(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>A unique, case-sensitive identifier that you provide to ensure the
|
|
* idempotency of the request.</p>
|
|
*/
|
|
inline const Aws::String& GetClientToken() const{ return m_clientToken; }
|
|
|
|
/**
|
|
* <p>A unique, case-sensitive identifier that you provide to ensure the
|
|
* idempotency of the request.</p>
|
|
*/
|
|
inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
|
|
|
|
/**
|
|
* <p>A unique, case-sensitive identifier that you provide to ensure the
|
|
* idempotency of the request.</p>
|
|
*/
|
|
inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
|
|
|
|
/**
|
|
* <p>A unique, case-sensitive identifier that you provide to ensure the
|
|
* idempotency of the request.</p>
|
|
*/
|
|
inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
|
|
|
|
/**
|
|
* <p>A unique, case-sensitive identifier that you provide to ensure the
|
|
* idempotency of the request.</p>
|
|
*/
|
|
inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
|
|
|
|
/**
|
|
* <p>A unique, case-sensitive identifier that you provide to ensure the
|
|
* idempotency of the request.</p>
|
|
*/
|
|
inline CreateResourceShareRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
|
|
|
|
/**
|
|
* <p>A unique, case-sensitive identifier that you provide to ensure the
|
|
* idempotency of the request.</p>
|
|
*/
|
|
inline CreateResourceShareRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>A unique, case-sensitive identifier that you provide to ensure the
|
|
* idempotency of the request.</p>
|
|
*/
|
|
inline CreateResourceShareRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The ARNs of the permissions to associate with the resource share. If you do
|
|
* not specify an ARN for the permission, AWS RAM automatically attaches the
|
|
* default version of the permission for each resource type.</p>
|
|
*/
|
|
inline const Aws::Vector<Aws::String>& GetPermissionArns() const{ return m_permissionArns; }
|
|
|
|
/**
|
|
* <p>The ARNs of the permissions to associate with the resource share. If you do
|
|
* not specify an ARN for the permission, AWS RAM automatically attaches the
|
|
* default version of the permission for each resource type.</p>
|
|
*/
|
|
inline bool PermissionArnsHasBeenSet() const { return m_permissionArnsHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The ARNs of the permissions to associate with the resource share. If you do
|
|
* not specify an ARN for the permission, AWS RAM automatically attaches the
|
|
* default version of the permission for each resource type.</p>
|
|
*/
|
|
inline void SetPermissionArns(const Aws::Vector<Aws::String>& value) { m_permissionArnsHasBeenSet = true; m_permissionArns = value; }
|
|
|
|
/**
|
|
* <p>The ARNs of the permissions to associate with the resource share. If you do
|
|
* not specify an ARN for the permission, AWS RAM automatically attaches the
|
|
* default version of the permission for each resource type.</p>
|
|
*/
|
|
inline void SetPermissionArns(Aws::Vector<Aws::String>&& value) { m_permissionArnsHasBeenSet = true; m_permissionArns = std::move(value); }
|
|
|
|
/**
|
|
* <p>The ARNs of the permissions to associate with the resource share. If you do
|
|
* not specify an ARN for the permission, AWS RAM automatically attaches the
|
|
* default version of the permission for each resource type.</p>
|
|
*/
|
|
inline CreateResourceShareRequest& WithPermissionArns(const Aws::Vector<Aws::String>& value) { SetPermissionArns(value); return *this;}
|
|
|
|
/**
|
|
* <p>The ARNs of the permissions to associate with the resource share. If you do
|
|
* not specify an ARN for the permission, AWS RAM automatically attaches the
|
|
* default version of the permission for each resource type.</p>
|
|
*/
|
|
inline CreateResourceShareRequest& WithPermissionArns(Aws::Vector<Aws::String>&& value) { SetPermissionArns(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The ARNs of the permissions to associate with the resource share. If you do
|
|
* not specify an ARN for the permission, AWS RAM automatically attaches the
|
|
* default version of the permission for each resource type.</p>
|
|
*/
|
|
inline CreateResourceShareRequest& AddPermissionArns(const Aws::String& value) { m_permissionArnsHasBeenSet = true; m_permissionArns.push_back(value); return *this; }
|
|
|
|
/**
|
|
* <p>The ARNs of the permissions to associate with the resource share. If you do
|
|
* not specify an ARN for the permission, AWS RAM automatically attaches the
|
|
* default version of the permission for each resource type.</p>
|
|
*/
|
|
inline CreateResourceShareRequest& AddPermissionArns(Aws::String&& value) { m_permissionArnsHasBeenSet = true; m_permissionArns.push_back(std::move(value)); return *this; }
|
|
|
|
/**
|
|
* <p>The ARNs of the permissions to associate with the resource share. If you do
|
|
* not specify an ARN for the permission, AWS RAM automatically attaches the
|
|
* default version of the permission for each resource type.</p>
|
|
*/
|
|
inline CreateResourceShareRequest& AddPermissionArns(const char* value) { m_permissionArnsHasBeenSet = true; m_permissionArns.push_back(value); return *this; }
|
|
|
|
private:
|
|
|
|
Aws::String m_name;
|
|
bool m_nameHasBeenSet;
|
|
|
|
Aws::Vector<Aws::String> m_resourceArns;
|
|
bool m_resourceArnsHasBeenSet;
|
|
|
|
Aws::Vector<Aws::String> m_principals;
|
|
bool m_principalsHasBeenSet;
|
|
|
|
Aws::Vector<Tag> m_tags;
|
|
bool m_tagsHasBeenSet;
|
|
|
|
bool m_allowExternalPrincipals;
|
|
bool m_allowExternalPrincipalsHasBeenSet;
|
|
|
|
Aws::String m_clientToken;
|
|
bool m_clientTokenHasBeenSet;
|
|
|
|
Aws::Vector<Aws::String> m_permissionArns;
|
|
bool m_permissionArnsHasBeenSet;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace RAM
|
|
} // namespace Aws
|