AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
StartDeclarativePoliciesReportRequest.h
1
6#pragma once
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/core/utils/memory/stl/AWSVector.h>
11#include <aws/ec2/model/TagSpecification.h>
12#include <utility>
13
14namespace Aws
15{
16namespace EC2
17{
18namespace Model
19{
20
24 {
25 public:
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "StartDeclarativePoliciesReport"; }
33
34 AWS_EC2_API Aws::String SerializePayload() const override;
35
36 protected:
37 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38
39 public:
40
42
48 inline bool GetDryRun() const { return m_dryRun; }
49 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
50 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
51 inline StartDeclarativePoliciesReportRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
53
55
59 inline const Aws::String& GetS3Bucket() const { return m_s3Bucket; }
60 inline bool S3BucketHasBeenSet() const { return m_s3BucketHasBeenSet; }
61 template<typename S3BucketT = Aws::String>
62 void SetS3Bucket(S3BucketT&& value) { m_s3BucketHasBeenSet = true; m_s3Bucket = std::forward<S3BucketT>(value); }
63 template<typename S3BucketT = Aws::String>
64 StartDeclarativePoliciesReportRequest& WithS3Bucket(S3BucketT&& value) { SetS3Bucket(std::forward<S3BucketT>(value)); return *this;}
66
68
71 inline const Aws::String& GetS3Prefix() const { return m_s3Prefix; }
72 inline bool S3PrefixHasBeenSet() const { return m_s3PrefixHasBeenSet; }
73 template<typename S3PrefixT = Aws::String>
74 void SetS3Prefix(S3PrefixT&& value) { m_s3PrefixHasBeenSet = true; m_s3Prefix = std::forward<S3PrefixT>(value); }
75 template<typename S3PrefixT = Aws::String>
76 StartDeclarativePoliciesReportRequest& WithS3Prefix(S3PrefixT&& value) { SetS3Prefix(std::forward<S3PrefixT>(value)); return *this;}
78
80
86 inline const Aws::String& GetTargetId() const { return m_targetId; }
87 inline bool TargetIdHasBeenSet() const { return m_targetIdHasBeenSet; }
88 template<typename TargetIdT = Aws::String>
89 void SetTargetId(TargetIdT&& value) { m_targetIdHasBeenSet = true; m_targetId = std::forward<TargetIdT>(value); }
90 template<typename TargetIdT = Aws::String>
91 StartDeclarativePoliciesReportRequest& WithTargetId(TargetIdT&& value) { SetTargetId(std::forward<TargetIdT>(value)); return *this;}
93
95
98 inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const { return m_tagSpecifications; }
99 inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
100 template<typename TagSpecificationsT = Aws::Vector<TagSpecification>>
101 void SetTagSpecifications(TagSpecificationsT&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = std::forward<TagSpecificationsT>(value); }
102 template<typename TagSpecificationsT = Aws::Vector<TagSpecification>>
103 StartDeclarativePoliciesReportRequest& WithTagSpecifications(TagSpecificationsT&& value) { SetTagSpecifications(std::forward<TagSpecificationsT>(value)); return *this;}
104 template<typename TagSpecificationsT = TagSpecification>
105 StartDeclarativePoliciesReportRequest& AddTagSpecifications(TagSpecificationsT&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.emplace_back(std::forward<TagSpecificationsT>(value)); return *this; }
107 private:
108
109 bool m_dryRun{false};
110 bool m_dryRunHasBeenSet = false;
111
112 Aws::String m_s3Bucket;
113 bool m_s3BucketHasBeenSet = false;
114
115 Aws::String m_s3Prefix;
116 bool m_s3PrefixHasBeenSet = false;
117
118 Aws::String m_targetId;
119 bool m_targetIdHasBeenSet = false;
120
121 Aws::Vector<TagSpecification> m_tagSpecifications;
122 bool m_tagSpecificationsHasBeenSet = false;
123 };
124
125} // namespace Model
126} // namespace EC2
127} // namespace Aws
StartDeclarativePoliciesReportRequest & WithTargetId(TargetIdT &&value)
StartDeclarativePoliciesReportRequest & WithS3Bucket(S3BucketT &&value)
AWS_EC2_API Aws::String SerializePayload() const override
StartDeclarativePoliciesReportRequest & WithS3Prefix(S3PrefixT &&value)
StartDeclarativePoliciesReportRequest & WithTagSpecifications(TagSpecificationsT &&value)
StartDeclarativePoliciesReportRequest & WithDryRun(bool value)
StartDeclarativePoliciesReportRequest & AddTagSpecifications(TagSpecificationsT &&value)
const Aws::Vector< TagSpecification > & GetTagSpecifications() const
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector