7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ec2/model/InstanceSpecification.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/ec2/model/CopyTagsFromSource.h>
13#include <aws/ec2/model/SnapshotLocationEnum.h>
14#include <aws/ec2/model/TagSpecification.h>
50 template<
typename DescriptionT = Aws::String>
51 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet =
true; m_description = std::forward<DescriptionT>(value); }
52 template<
typename DescriptionT = Aws::String>
63 template<
typename InstanceSpecificationT = InstanceSpecification>
64 void SetInstanceSpecification(InstanceSpecificationT&& value) { m_instanceSpecificationHasBeenSet =
true; m_instanceSpecification = std::forward<InstanceSpecificationT>(value); }
65 template<
typename InstanceSpecificationT = InstanceSpecification>
83 template<
typename OutpostArnT = Aws::String>
84 void SetOutpostArn(OutpostArnT&& value) { m_outpostArnHasBeenSet =
true; m_outpostArn = std::forward<OutpostArnT>(value); }
85 template<
typename OutpostArnT = Aws::String>
95 template<
typename TagSpecificationsT = Aws::Vector<TagSpecification>>
96 void SetTagSpecifications(TagSpecificationsT&& value) { m_tagSpecificationsHasBeenSet =
true; m_tagSpecifications = std::forward<TagSpecificationsT>(value); }
97 template<
typename TagSpecificationsT = Aws::Vector<TagSpecification>>
99 template<
typename TagSpecificationsT = TagSpecification>
112 inline void SetDryRun(
bool value) { m_dryRunHasBeenSet =
true; m_dryRun = value; }
143 bool m_descriptionHasBeenSet =
false;
146 bool m_instanceSpecificationHasBeenSet =
false;
149 bool m_outpostArnHasBeenSet =
false;
152 bool m_tagSpecificationsHasBeenSet =
false;
154 bool m_dryRun{
false};
155 bool m_dryRunHasBeenSet =
false;
158 bool m_copyTagsFromSourceHasBeenSet =
false;
161 bool m_locationHasBeenSet =
false;
CreateSnapshotsRequest & WithInstanceSpecification(InstanceSpecificationT &&value)
void SetInstanceSpecification(InstanceSpecificationT &&value)
void SetDescription(DescriptionT &&value)
void SetTagSpecifications(TagSpecificationsT &&value)
void SetDryRun(bool value)
SnapshotLocationEnum GetLocation() const
bool DescriptionHasBeenSet() const
CreateSnapshotsRequest & WithOutpostArn(OutpostArnT &&value)
bool LocationHasBeenSet() const
bool DryRunHasBeenSet() const
void SetOutpostArn(OutpostArnT &&value)
CreateSnapshotsRequest & WithDryRun(bool value)
bool OutpostArnHasBeenSet() const
CreateSnapshotsRequest & WithLocation(SnapshotLocationEnum value)
const Aws::String & GetDescription() const
void SetLocation(SnapshotLocationEnum value)
bool CopyTagsFromSourceHasBeenSet() const
const InstanceSpecification & GetInstanceSpecification() const
CopyTagsFromSource GetCopyTagsFromSource() const
AWS_EC2_API CreateSnapshotsRequest()=default
bool InstanceSpecificationHasBeenSet() const
CreateSnapshotsRequest & WithDescription(DescriptionT &&value)
virtual const char * GetServiceRequestName() const override
bool TagSpecificationsHasBeenSet() const
CreateSnapshotsRequest & WithTagSpecifications(TagSpecificationsT &&value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
const Aws::Vector< TagSpecification > & GetTagSpecifications() const
AWS_EC2_API Aws::String SerializePayload() const override
CreateSnapshotsRequest & AddTagSpecifications(TagSpecificationsT &&value)
CreateSnapshotsRequest & WithCopyTagsFromSource(CopyTagsFromSource value)
const Aws::String & GetOutpostArn() const
void SetCopyTagsFromSource(CopyTagsFromSource value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector