AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
ReasonSummary.h
1
6#pragma once
7#include <aws/accessanalyzer/AccessAnalyzer_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace AccessAnalyzer {
20namespace Model {
21
29 public:
30 AWS_ACCESSANALYZER_API ReasonSummary() = default;
31 AWS_ACCESSANALYZER_API ReasonSummary(Aws::Utils::Json::JsonView jsonValue);
32 AWS_ACCESSANALYZER_API ReasonSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetDescription() const { return m_description; }
40 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
41 template <typename DescriptionT = Aws::String>
42 void SetDescription(DescriptionT&& value) {
43 m_descriptionHasBeenSet = true;
44 m_description = std::forward<DescriptionT>(value);
45 }
46 template <typename DescriptionT = Aws::String>
47 ReasonSummary& WithDescription(DescriptionT&& value) {
48 SetDescription(std::forward<DescriptionT>(value));
49 return *this;
50 }
52
54
57 inline int GetStatementIndex() const { return m_statementIndex; }
58 inline bool StatementIndexHasBeenSet() const { return m_statementIndexHasBeenSet; }
59 inline void SetStatementIndex(int value) {
60 m_statementIndexHasBeenSet = true;
61 m_statementIndex = value;
62 }
63 inline ReasonSummary& WithStatementIndex(int value) {
64 SetStatementIndex(value);
65 return *this;
66 }
68
70
73 inline const Aws::String& GetStatementId() const { return m_statementId; }
74 inline bool StatementIdHasBeenSet() const { return m_statementIdHasBeenSet; }
75 template <typename StatementIdT = Aws::String>
76 void SetStatementId(StatementIdT&& value) {
77 m_statementIdHasBeenSet = true;
78 m_statementId = std::forward<StatementIdT>(value);
79 }
80 template <typename StatementIdT = Aws::String>
81 ReasonSummary& WithStatementId(StatementIdT&& value) {
82 SetStatementId(std::forward<StatementIdT>(value));
83 return *this;
84 }
86 private:
87 Aws::String m_description;
88
89 int m_statementIndex{0};
90
91 Aws::String m_statementId;
92 bool m_descriptionHasBeenSet = false;
93 bool m_statementIndexHasBeenSet = false;
94 bool m_statementIdHasBeenSet = false;
95};
96
97} // namespace Model
98} // namespace AccessAnalyzer
99} // namespace Aws
AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetStatementId() const
ReasonSummary & WithStatementId(StatementIdT &&value)
AWS_ACCESSANALYZER_API ReasonSummary()=default
AWS_ACCESSANALYZER_API ReasonSummary(Aws::Utils::Json::JsonView jsonValue)
ReasonSummary & WithStatementIndex(int value)
const Aws::String & GetDescription() const
ReasonSummary & WithDescription(DescriptionT &&value)
AWS_ACCESSANALYZER_API ReasonSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetStatementId(StatementIdT &&value)
void SetDescription(DescriptionT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue