AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
DeclarativePoliciesReport.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/ec2/model/ReportState.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/ec2/model/Tag.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Xml
21{
22 class XmlNode;
23} // namespace Xml
24} // namespace Utils
25namespace EC2
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_EC2_API DeclarativePoliciesReport() = default;
42
43 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
44 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
45
46
48
51 inline const Aws::String& GetReportId() const { return m_reportId; }
52 inline bool ReportIdHasBeenSet() const { return m_reportIdHasBeenSet; }
53 template<typename ReportIdT = Aws::String>
54 void SetReportId(ReportIdT&& value) { m_reportIdHasBeenSet = true; m_reportId = std::forward<ReportIdT>(value); }
55 template<typename ReportIdT = Aws::String>
56 DeclarativePoliciesReport& WithReportId(ReportIdT&& value) { SetReportId(std::forward<ReportIdT>(value)); return *this;}
58
60
63 inline const Aws::String& GetS3Bucket() const { return m_s3Bucket; }
64 inline bool S3BucketHasBeenSet() const { return m_s3BucketHasBeenSet; }
65 template<typename S3BucketT = Aws::String>
66 void SetS3Bucket(S3BucketT&& value) { m_s3BucketHasBeenSet = true; m_s3Bucket = std::forward<S3BucketT>(value); }
67 template<typename S3BucketT = Aws::String>
68 DeclarativePoliciesReport& WithS3Bucket(S3BucketT&& value) { SetS3Bucket(std::forward<S3BucketT>(value)); return *this;}
70
72
75 inline const Aws::String& GetS3Prefix() const { return m_s3Prefix; }
76 inline bool S3PrefixHasBeenSet() const { return m_s3PrefixHasBeenSet; }
77 template<typename S3PrefixT = Aws::String>
78 void SetS3Prefix(S3PrefixT&& value) { m_s3PrefixHasBeenSet = true; m_s3Prefix = std::forward<S3PrefixT>(value); }
79 template<typename S3PrefixT = Aws::String>
80 DeclarativePoliciesReport& WithS3Prefix(S3PrefixT&& value) { SetS3Prefix(std::forward<S3PrefixT>(value)); return *this;}
82
84
90 inline const Aws::String& GetTargetId() const { return m_targetId; }
91 inline bool TargetIdHasBeenSet() const { return m_targetIdHasBeenSet; }
92 template<typename TargetIdT = Aws::String>
93 void SetTargetId(TargetIdT&& value) { m_targetIdHasBeenSet = true; m_targetId = std::forward<TargetIdT>(value); }
94 template<typename TargetIdT = Aws::String>
95 DeclarativePoliciesReport& WithTargetId(TargetIdT&& value) { SetTargetId(std::forward<TargetIdT>(value)); return *this;}
97
99
102 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
103 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
104 template<typename StartTimeT = Aws::Utils::DateTime>
105 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet = true; m_startTime = std::forward<StartTimeT>(value); }
106 template<typename StartTimeT = Aws::Utils::DateTime>
107 DeclarativePoliciesReport& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
109
111
114 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
115 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
116 template<typename EndTimeT = Aws::Utils::DateTime>
117 void SetEndTime(EndTimeT&& value) { m_endTimeHasBeenSet = true; m_endTime = std::forward<EndTimeT>(value); }
118 template<typename EndTimeT = Aws::Utils::DateTime>
119 DeclarativePoliciesReport& WithEndTime(EndTimeT&& value) { SetEndTime(std::forward<EndTimeT>(value)); return *this;}
121
123
126 inline ReportState GetStatus() const { return m_status; }
127 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
128 inline void SetStatus(ReportState value) { m_statusHasBeenSet = true; m_status = value; }
129 inline DeclarativePoliciesReport& WithStatus(ReportState value) { SetStatus(value); return *this;}
131
133
136 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
137 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
138 template<typename TagsT = Aws::Vector<Tag>>
139 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
140 template<typename TagsT = Aws::Vector<Tag>>
141 DeclarativePoliciesReport& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
142 template<typename TagsT = Tag>
143 DeclarativePoliciesReport& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
145 private:
146
147 Aws::String m_reportId;
148 bool m_reportIdHasBeenSet = false;
149
150 Aws::String m_s3Bucket;
151 bool m_s3BucketHasBeenSet = false;
152
153 Aws::String m_s3Prefix;
154 bool m_s3PrefixHasBeenSet = false;
155
156 Aws::String m_targetId;
157 bool m_targetIdHasBeenSet = false;
158
159 Aws::Utils::DateTime m_startTime{};
160 bool m_startTimeHasBeenSet = false;
161
162 Aws::Utils::DateTime m_endTime{};
163 bool m_endTimeHasBeenSet = false;
164
166 bool m_statusHasBeenSet = false;
167
168 Aws::Vector<Tag> m_tags;
169 bool m_tagsHasBeenSet = false;
170 };
171
172} // namespace Model
173} // namespace EC2
174} // namespace Aws
DeclarativePoliciesReport & WithTargetId(TargetIdT &&value)
DeclarativePoliciesReport & WithStatus(ReportState value)
DeclarativePoliciesReport & AddTags(TagsT &&value)
DeclarativePoliciesReport & WithReportId(ReportIdT &&value)
const Aws::Utils::DateTime & GetEndTime() const
DeclarativePoliciesReport & WithStartTime(StartTimeT &&value)
const Aws::Utils::DateTime & GetStartTime() const
AWS_EC2_API DeclarativePoliciesReport & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API DeclarativePoliciesReport(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
DeclarativePoliciesReport & WithS3Prefix(S3PrefixT &&value)
DeclarativePoliciesReport & WithS3Bucket(S3BucketT &&value)
AWS_EC2_API DeclarativePoliciesReport()=default
DeclarativePoliciesReport & WithEndTime(EndTimeT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
DeclarativePoliciesReport & WithTags(TagsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream