7#include <aws/ram/RAM_EXPORTS.h>
8#include <aws/ram/RAMRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
30 inline virtual const char*
GetServiceRequestName()
const override {
return "AssociateResourceSharePermission"; }
46 inline void SetResourceShareArn(
const char* value) { m_resourceShareArnHasBeenSet =
true; m_resourceShareArn.assign(value); }
67 inline void SetPermissionArn(
const char* value) { m_permissionArnHasBeenSet =
true; m_permissionArn.assign(value); }
87 inline void SetReplace(
bool value) { m_replaceHasBeenSet =
true; m_replace = value; }
108 inline void SetClientToken(
const char* value) { m_clientTokenHasBeenSet =
true; m_clientToken.assign(value); }
127 inline void SetPermissionVersion(
int value) { m_permissionVersionHasBeenSet =
true; m_permissionVersion = value; }
133 bool m_resourceShareArnHasBeenSet =
false;
136 bool m_permissionArnHasBeenSet =
false;
139 bool m_replaceHasBeenSet =
false;
142 bool m_clientTokenHasBeenSet =
false;
144 int m_permissionVersion;
145 bool m_permissionVersionHasBeenSet =
false;
AssociateResourceSharePermissionRequest & WithReplace(bool value)
AssociateResourceSharePermissionRequest & WithResourceShareArn(const char *value)
void SetReplace(bool value)
void SetResourceShareArn(const Aws::String &value)
AssociateResourceSharePermissionRequest & WithResourceShareArn(const Aws::String &value)
AssociateResourceSharePermissionRequest & WithPermissionVersion(int value)
void SetClientToken(const char *value)
bool ClientTokenHasBeenSet() const
void SetClientToken(const Aws::String &value)
AWS_RAM_API AssociateResourceSharePermissionRequest()
AssociateResourceSharePermissionRequest & WithClientToken(const Aws::String &value)
void SetPermissionArn(const char *value)
AWS_RAM_API Aws::String SerializePayload() const override
bool PermissionVersionHasBeenSet() const
void SetClientToken(Aws::String &&value)
bool ReplaceHasBeenSet() const
void SetPermissionArn(const Aws::String &value)
const Aws::String & GetResourceShareArn() const
void SetResourceShareArn(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
AssociateResourceSharePermissionRequest & WithPermissionArn(const Aws::String &value)
const Aws::String & GetPermissionArn() const
int GetPermissionVersion() const
AssociateResourceSharePermissionRequest & WithClientToken(Aws::String &&value)
AssociateResourceSharePermissionRequest & WithPermissionArn(Aws::String &&value)
bool ResourceShareArnHasBeenSet() const
AssociateResourceSharePermissionRequest & WithPermissionArn(const char *value)
bool PermissionArnHasBeenSet() const
void SetPermissionVersion(int value)
void SetPermissionArn(Aws::String &&value)
const Aws::String & GetClientToken() const
void SetResourceShareArn(const char *value)
AssociateResourceSharePermissionRequest & WithClientToken(const char *value)
AssociateResourceSharePermissionRequest & WithResourceShareArn(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String