AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AccessPreviewSummary.h
1
6#pragma once
7#include <aws/accessanalyzer/AccessAnalyzer_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/accessanalyzer/model/AccessPreviewStatus.h>
11#include <aws/accessanalyzer/model/AccessPreviewStatusReason.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace AccessAnalyzer
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_ACCESSANALYZER_API AccessPreviewSummary();
39 AWS_ACCESSANALYZER_API AccessPreviewSummary(Aws::Utils::Json::JsonView jsonValue);
40 AWS_ACCESSANALYZER_API AccessPreviewSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetId() const{ return m_id; }
49 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
50 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
51 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
52 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
53 inline AccessPreviewSummary& WithId(const Aws::String& value) { SetId(value); return *this;}
54 inline AccessPreviewSummary& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
55 inline AccessPreviewSummary& WithId(const char* value) { SetId(value); return *this;}
57
59
62 inline const Aws::String& GetAnalyzerArn() const{ return m_analyzerArn; }
63 inline bool AnalyzerArnHasBeenSet() const { return m_analyzerArnHasBeenSet; }
64 inline void SetAnalyzerArn(const Aws::String& value) { m_analyzerArnHasBeenSet = true; m_analyzerArn = value; }
65 inline void SetAnalyzerArn(Aws::String&& value) { m_analyzerArnHasBeenSet = true; m_analyzerArn = std::move(value); }
66 inline void SetAnalyzerArn(const char* value) { m_analyzerArnHasBeenSet = true; m_analyzerArn.assign(value); }
67 inline AccessPreviewSummary& WithAnalyzerArn(const Aws::String& value) { SetAnalyzerArn(value); return *this;}
68 inline AccessPreviewSummary& WithAnalyzerArn(Aws::String&& value) { SetAnalyzerArn(std::move(value)); return *this;}
69 inline AccessPreviewSummary& WithAnalyzerArn(const char* value) { SetAnalyzerArn(value); return *this;}
71
73
76 inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
77 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
78 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
79 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
80 inline AccessPreviewSummary& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
81 inline AccessPreviewSummary& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
83
85
92 inline const AccessPreviewStatus& GetStatus() const{ return m_status; }
93 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
94 inline void SetStatus(const AccessPreviewStatus& value) { m_statusHasBeenSet = true; m_status = value; }
95 inline void SetStatus(AccessPreviewStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
96 inline AccessPreviewSummary& WithStatus(const AccessPreviewStatus& value) { SetStatus(value); return *this;}
97 inline AccessPreviewSummary& WithStatus(AccessPreviewStatus&& value) { SetStatus(std::move(value)); return *this;}
99
101
102 inline const AccessPreviewStatusReason& GetStatusReason() const{ return m_statusReason; }
103 inline bool StatusReasonHasBeenSet() const { return m_statusReasonHasBeenSet; }
104 inline void SetStatusReason(const AccessPreviewStatusReason& value) { m_statusReasonHasBeenSet = true; m_statusReason = value; }
105 inline void SetStatusReason(AccessPreviewStatusReason&& value) { m_statusReasonHasBeenSet = true; m_statusReason = std::move(value); }
107 inline AccessPreviewSummary& WithStatusReason(AccessPreviewStatusReason&& value) { SetStatusReason(std::move(value)); return *this;}
109 private:
110
111 Aws::String m_id;
112 bool m_idHasBeenSet = false;
113
114 Aws::String m_analyzerArn;
115 bool m_analyzerArnHasBeenSet = false;
116
117 Aws::Utils::DateTime m_createdAt;
118 bool m_createdAtHasBeenSet = false;
119
120 AccessPreviewStatus m_status;
121 bool m_statusHasBeenSet = false;
122
123 AccessPreviewStatusReason m_statusReason;
124 bool m_statusReasonHasBeenSet = false;
125 };
126
127} // namespace Model
128} // namespace AccessAnalyzer
129} // namespace Aws
AccessPreviewSummary & WithId(const char *value)
AccessPreviewSummary & WithStatusReason(const AccessPreviewStatusReason &value)
AccessPreviewSummary & WithStatus(const AccessPreviewStatus &value)
AccessPreviewSummary & WithId(const Aws::String &value)
const AccessPreviewStatusReason & GetStatusReason() const
const Aws::Utils::DateTime & GetCreatedAt() const
const AccessPreviewStatus & GetStatus() const
AccessPreviewSummary & WithStatus(AccessPreviewStatus &&value)
void SetStatusReason(AccessPreviewStatusReason &&value)
void SetCreatedAt(Aws::Utils::DateTime &&value)
AWS_ACCESSANALYZER_API AccessPreviewSummary(Aws::Utils::Json::JsonView jsonValue)
AccessPreviewSummary & WithCreatedAt(const Aws::Utils::DateTime &value)
void SetCreatedAt(const Aws::Utils::DateTime &value)
AccessPreviewSummary & WithAnalyzerArn(const Aws::String &value)
AccessPreviewSummary & WithId(Aws::String &&value)
AccessPreviewSummary & WithAnalyzerArn(Aws::String &&value)
AccessPreviewSummary & WithCreatedAt(Aws::Utils::DateTime &&value)
AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetStatusReason(const AccessPreviewStatusReason &value)
AWS_ACCESSANALYZER_API AccessPreviewSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetStatus(const AccessPreviewStatus &value)
AccessPreviewSummary & WithStatusReason(AccessPreviewStatusReason &&value)
AccessPreviewSummary & WithAnalyzerArn(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue