AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ResourceScanSummary.h
1
6#pragma once
7#include <aws/cloudformation/CloudFormation_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/cloudformation/model/ResourceScanStatus.h>
11#include <aws/core/utils/DateTime.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Xml
19{
20 class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace CloudFormation
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_CLOUDFORMATION_API ResourceScanSummary();
38 AWS_CLOUDFORMATION_API ResourceScanSummary(const Aws::Utils::Xml::XmlNode& xmlNode);
39 AWS_CLOUDFORMATION_API ResourceScanSummary& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
40
41 AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42 AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
43
44
46
49 inline const Aws::String& GetResourceScanId() const{ return m_resourceScanId; }
50 inline bool ResourceScanIdHasBeenSet() const { return m_resourceScanIdHasBeenSet; }
51 inline void SetResourceScanId(const Aws::String& value) { m_resourceScanIdHasBeenSet = true; m_resourceScanId = value; }
52 inline void SetResourceScanId(Aws::String&& value) { m_resourceScanIdHasBeenSet = true; m_resourceScanId = std::move(value); }
53 inline void SetResourceScanId(const char* value) { m_resourceScanIdHasBeenSet = true; m_resourceScanId.assign(value); }
54 inline ResourceScanSummary& WithResourceScanId(const Aws::String& value) { SetResourceScanId(value); return *this;}
55 inline ResourceScanSummary& WithResourceScanId(Aws::String&& value) { SetResourceScanId(std::move(value)); return *this;}
56 inline ResourceScanSummary& WithResourceScanId(const char* value) { SetResourceScanId(value); return *this;}
58
60
67 inline const ResourceScanStatus& GetStatus() const{ return m_status; }
68 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
69 inline void SetStatus(const ResourceScanStatus& value) { m_statusHasBeenSet = true; m_status = value; }
70 inline void SetStatus(ResourceScanStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
71 inline ResourceScanSummary& WithStatus(const ResourceScanStatus& value) { SetStatus(value); return *this;}
72 inline ResourceScanSummary& WithStatus(ResourceScanStatus&& value) { SetStatus(std::move(value)); return *this;}
74
76
80 inline const Aws::String& GetStatusReason() const{ return m_statusReason; }
81 inline bool StatusReasonHasBeenSet() const { return m_statusReasonHasBeenSet; }
82 inline void SetStatusReason(const Aws::String& value) { m_statusReasonHasBeenSet = true; m_statusReason = value; }
83 inline void SetStatusReason(Aws::String&& value) { m_statusReasonHasBeenSet = true; m_statusReason = std::move(value); }
84 inline void SetStatusReason(const char* value) { m_statusReasonHasBeenSet = true; m_statusReason.assign(value); }
85 inline ResourceScanSummary& WithStatusReason(const Aws::String& value) { SetStatusReason(value); return *this;}
86 inline ResourceScanSummary& WithStatusReason(Aws::String&& value) { SetStatusReason(std::move(value)); return *this;}
87 inline ResourceScanSummary& WithStatusReason(const char* value) { SetStatusReason(value); return *this;}
89
91
94 inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
95 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
96 inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
97 inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
98 inline ResourceScanSummary& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
99 inline ResourceScanSummary& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
101
103
106 inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
107 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
108 inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
109 inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
110 inline ResourceScanSummary& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
111 inline ResourceScanSummary& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
113
115
118 inline double GetPercentageCompleted() const{ return m_percentageCompleted; }
119 inline bool PercentageCompletedHasBeenSet() const { return m_percentageCompletedHasBeenSet; }
120 inline void SetPercentageCompleted(double value) { m_percentageCompletedHasBeenSet = true; m_percentageCompleted = value; }
121 inline ResourceScanSummary& WithPercentageCompleted(double value) { SetPercentageCompleted(value); return *this;}
123 private:
124
125 Aws::String m_resourceScanId;
126 bool m_resourceScanIdHasBeenSet = false;
127
128 ResourceScanStatus m_status;
129 bool m_statusHasBeenSet = false;
130
131 Aws::String m_statusReason;
132 bool m_statusReasonHasBeenSet = false;
133
134 Aws::Utils::DateTime m_startTime;
135 bool m_startTimeHasBeenSet = false;
136
137 Aws::Utils::DateTime m_endTime;
138 bool m_endTimeHasBeenSet = false;
139
140 double m_percentageCompleted;
141 bool m_percentageCompletedHasBeenSet = false;
142 };
143
144} // namespace Model
145} // namespace CloudFormation
146} // namespace Aws
AWS_CLOUDFORMATION_API ResourceScanSummary(const Aws::Utils::Xml::XmlNode &xmlNode)
ResourceScanSummary & WithResourceScanId(Aws::String &&value)
void SetStartTime(const Aws::Utils::DateTime &value)
ResourceScanSummary & WithStatusReason(Aws::String &&value)
ResourceScanSummary & WithResourceScanId(const Aws::String &value)
AWS_CLOUDFORMATION_API ResourceScanSummary & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::Utils::DateTime & GetEndTime() const
ResourceScanSummary & WithStatusReason(const Aws::String &value)
void SetStartTime(Aws::Utils::DateTime &&value)
void SetEndTime(Aws::Utils::DateTime &&value)
ResourceScanSummary & WithResourceScanId(const char *value)
AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream &oStream, const char *location) const
ResourceScanSummary & WithStatusReason(const char *value)
void SetStatus(const ResourceScanStatus &value)
ResourceScanSummary & WithEndTime(Aws::Utils::DateTime &&value)
const ResourceScanStatus & GetStatus() const
ResourceScanSummary & WithStartTime(const Aws::Utils::DateTime &value)
ResourceScanSummary & WithStatus(const ResourceScanStatus &value)
ResourceScanSummary & WithStartTime(Aws::Utils::DateTime &&value)
ResourceScanSummary & WithStatus(ResourceScanStatus &&value)
void SetEndTime(const Aws::Utils::DateTime &value)
AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const Aws::Utils::DateTime & GetStartTime() const
ResourceScanSummary & WithPercentageCompleted(double value)
ResourceScanSummary & WithEndTime(const Aws::Utils::DateTime &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream