7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/ec2/model/SnapshotAttributeName.h>
10#include <aws/ec2/model/CreateVolumePermissionModifications.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/ec2/model/OperationType.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
103 inline void SetSnapshotId(
const char* value) { m_snapshotIdHasBeenSet =
true; m_snapshotId.assign(value); }
133 inline void SetDryRun(
bool value) { m_dryRunHasBeenSet =
true; m_dryRun = value; }
139 bool m_attributeHasBeenSet =
false;
142 bool m_createVolumePermissionHasBeenSet =
false;
145 bool m_groupNamesHasBeenSet =
false;
148 bool m_operationTypeHasBeenSet =
false;
151 bool m_snapshotIdHasBeenSet =
false;
154 bool m_userIdsHasBeenSet =
false;
157 bool m_dryRunHasBeenSet =
false;
ModifySnapshotAttributeRequest & AddUserIds(Aws::String &&value)
ModifySnapshotAttributeRequest & AddGroupNames(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
const Aws::Vector< Aws::String > & GetGroupNames() const
bool DryRunHasBeenSet() const
const Aws::String & GetSnapshotId() const
ModifySnapshotAttributeRequest & WithSnapshotId(Aws::String &&value)
void SetGroupNames(Aws::Vector< Aws::String > &&value)
void SetCreateVolumePermission(const CreateVolumePermissionModifications &value)
ModifySnapshotAttributeRequest & WithGroupNames(Aws::Vector< Aws::String > &&value)
void SetOperationType(const OperationType &value)
void SetCreateVolumePermission(CreateVolumePermissionModifications &&value)
void SetSnapshotId(const Aws::String &value)
bool SnapshotIdHasBeenSet() const
ModifySnapshotAttributeRequest & WithGroupNames(const Aws::Vector< Aws::String > &value)
void SetSnapshotId(Aws::String &&value)
void SetGroupNames(const Aws::Vector< Aws::String > &value)
void SetAttribute(SnapshotAttributeName &&value)
const Aws::Vector< Aws::String > & GetUserIds() const
void SetAttribute(const SnapshotAttributeName &value)
ModifySnapshotAttributeRequest & AddUserIds(const char *value)
ModifySnapshotAttributeRequest & WithCreateVolumePermission(CreateVolumePermissionModifications &&value)
ModifySnapshotAttributeRequest & AddUserIds(const Aws::String &value)
ModifySnapshotAttributeRequest & WithSnapshotId(const Aws::String &value)
void SetOperationType(OperationType &&value)
ModifySnapshotAttributeRequest & WithUserIds(const Aws::Vector< Aws::String > &value)
const OperationType & GetOperationType() const
const CreateVolumePermissionModifications & GetCreateVolumePermission() const
bool AttributeHasBeenSet() const
ModifySnapshotAttributeRequest & WithOperationType(const OperationType &value)
ModifySnapshotAttributeRequest & WithAttribute(const SnapshotAttributeName &value)
AWS_EC2_API Aws::String SerializePayload() const override
ModifySnapshotAttributeRequest & AddGroupNames(const char *value)
ModifySnapshotAttributeRequest & WithAttribute(SnapshotAttributeName &&value)
ModifySnapshotAttributeRequest & WithCreateVolumePermission(const CreateVolumePermissionModifications &value)
void SetUserIds(Aws::Vector< Aws::String > &&value)
bool CreateVolumePermissionHasBeenSet() const
void SetDryRun(bool value)
ModifySnapshotAttributeRequest & WithSnapshotId(const char *value)
void SetUserIds(const Aws::Vector< Aws::String > &value)
ModifySnapshotAttributeRequest & WithOperationType(OperationType &&value)
ModifySnapshotAttributeRequest & WithUserIds(Aws::Vector< Aws::String > &&value)
const SnapshotAttributeName & GetAttribute() const
ModifySnapshotAttributeRequest & WithDryRun(bool value)
AWS_EC2_API ModifySnapshotAttributeRequest()
void SetSnapshotId(const char *value)
ModifySnapshotAttributeRequest & AddGroupNames(const Aws::String &value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
bool UserIdsHasBeenSet() const
bool GroupNamesHasBeenSet() const
bool OperationTypeHasBeenSet() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector