AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ValidatePolicyFinding.h
1
6#pragma once
7#include <aws/accessanalyzer/AccessAnalyzer_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/accessanalyzer/model/ValidatePolicyFindingType.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/accessanalyzer/model/Location.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 ValidatePolicyFinding();
39 AWS_ACCESSANALYZER_API ValidatePolicyFinding(Aws::Utils::Json::JsonView jsonValue);
41 AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
49 inline const Aws::String& GetFindingDetails() const{ return m_findingDetails; }
50 inline bool FindingDetailsHasBeenSet() const { return m_findingDetailsHasBeenSet; }
51 inline void SetFindingDetails(const Aws::String& value) { m_findingDetailsHasBeenSet = true; m_findingDetails = value; }
52 inline void SetFindingDetails(Aws::String&& value) { m_findingDetailsHasBeenSet = true; m_findingDetails = std::move(value); }
53 inline void SetFindingDetails(const char* value) { m_findingDetailsHasBeenSet = true; m_findingDetails.assign(value); }
54 inline ValidatePolicyFinding& WithFindingDetails(const Aws::String& value) { SetFindingDetails(value); return *this;}
55 inline ValidatePolicyFinding& WithFindingDetails(Aws::String&& value) { SetFindingDetails(std::move(value)); return *this;}
56 inline ValidatePolicyFinding& WithFindingDetails(const char* value) { SetFindingDetails(value); return *this;}
58
60
68 inline const ValidatePolicyFindingType& GetFindingType() const{ return m_findingType; }
69 inline bool FindingTypeHasBeenSet() const { return m_findingTypeHasBeenSet; }
70 inline void SetFindingType(const ValidatePolicyFindingType& value) { m_findingTypeHasBeenSet = true; m_findingType = value; }
71 inline void SetFindingType(ValidatePolicyFindingType&& value) { m_findingTypeHasBeenSet = true; m_findingType = std::move(value); }
73 inline ValidatePolicyFinding& WithFindingType(ValidatePolicyFindingType&& value) { SetFindingType(std::move(value)); return *this;}
75
77
81 inline const Aws::String& GetIssueCode() const{ return m_issueCode; }
82 inline bool IssueCodeHasBeenSet() const { return m_issueCodeHasBeenSet; }
83 inline void SetIssueCode(const Aws::String& value) { m_issueCodeHasBeenSet = true; m_issueCode = value; }
84 inline void SetIssueCode(Aws::String&& value) { m_issueCodeHasBeenSet = true; m_issueCode = std::move(value); }
85 inline void SetIssueCode(const char* value) { m_issueCodeHasBeenSet = true; m_issueCode.assign(value); }
86 inline ValidatePolicyFinding& WithIssueCode(const Aws::String& value) { SetIssueCode(value); return *this;}
87 inline ValidatePolicyFinding& WithIssueCode(Aws::String&& value) { SetIssueCode(std::move(value)); return *this;}
88 inline ValidatePolicyFinding& WithIssueCode(const char* value) { SetIssueCode(value); return *this;}
90
92
95 inline const Aws::String& GetLearnMoreLink() const{ return m_learnMoreLink; }
96 inline bool LearnMoreLinkHasBeenSet() const { return m_learnMoreLinkHasBeenSet; }
97 inline void SetLearnMoreLink(const Aws::String& value) { m_learnMoreLinkHasBeenSet = true; m_learnMoreLink = value; }
98 inline void SetLearnMoreLink(Aws::String&& value) { m_learnMoreLinkHasBeenSet = true; m_learnMoreLink = std::move(value); }
99 inline void SetLearnMoreLink(const char* value) { m_learnMoreLinkHasBeenSet = true; m_learnMoreLink.assign(value); }
100 inline ValidatePolicyFinding& WithLearnMoreLink(const Aws::String& value) { SetLearnMoreLink(value); return *this;}
101 inline ValidatePolicyFinding& WithLearnMoreLink(Aws::String&& value) { SetLearnMoreLink(std::move(value)); return *this;}
102 inline ValidatePolicyFinding& WithLearnMoreLink(const char* value) { SetLearnMoreLink(value); return *this;}
104
106
110 inline const Aws::Vector<Location>& GetLocations() const{ return m_locations; }
111 inline bool LocationsHasBeenSet() const { return m_locationsHasBeenSet; }
112 inline void SetLocations(const Aws::Vector<Location>& value) { m_locationsHasBeenSet = true; m_locations = value; }
113 inline void SetLocations(Aws::Vector<Location>&& value) { m_locationsHasBeenSet = true; m_locations = std::move(value); }
114 inline ValidatePolicyFinding& WithLocations(const Aws::Vector<Location>& value) { SetLocations(value); return *this;}
115 inline ValidatePolicyFinding& WithLocations(Aws::Vector<Location>&& value) { SetLocations(std::move(value)); return *this;}
116 inline ValidatePolicyFinding& AddLocations(const Location& value) { m_locationsHasBeenSet = true; m_locations.push_back(value); return *this; }
117 inline ValidatePolicyFinding& AddLocations(Location&& value) { m_locationsHasBeenSet = true; m_locations.push_back(std::move(value)); return *this; }
119 private:
120
121 Aws::String m_findingDetails;
122 bool m_findingDetailsHasBeenSet = false;
123
124 ValidatePolicyFindingType m_findingType;
125 bool m_findingTypeHasBeenSet = false;
126
127 Aws::String m_issueCode;
128 bool m_issueCodeHasBeenSet = false;
129
130 Aws::String m_learnMoreLink;
131 bool m_learnMoreLinkHasBeenSet = false;
132
133 Aws::Vector<Location> m_locations;
134 bool m_locationsHasBeenSet = false;
135 };
136
137} // namespace Model
138} // namespace AccessAnalyzer
139} // namespace Aws
void SetLocations(const Aws::Vector< Location > &value)
const Aws::Vector< Location > & GetLocations() const
ValidatePolicyFinding & WithIssueCode(const Aws::String &value)
ValidatePolicyFinding & AddLocations(const Location &value)
void SetFindingType(const ValidatePolicyFindingType &value)
ValidatePolicyFinding & WithLearnMoreLink(Aws::String &&value)
ValidatePolicyFinding & WithLocations(Aws::Vector< Location > &&value)
ValidatePolicyFinding & WithLocations(const Aws::Vector< Location > &value)
ValidatePolicyFinding & AddLocations(Location &&value)
void SetLocations(Aws::Vector< Location > &&value)
ValidatePolicyFinding & WithLearnMoreLink(const Aws::String &value)
ValidatePolicyFinding & WithLearnMoreLink(const char *value)
ValidatePolicyFinding & WithFindingDetails(Aws::String &&value)
ValidatePolicyFinding & WithFindingType(const ValidatePolicyFindingType &value)
void SetFindingType(ValidatePolicyFindingType &&value)
AWS_ACCESSANALYZER_API ValidatePolicyFinding & operator=(Aws::Utils::Json::JsonView jsonValue)
const ValidatePolicyFindingType & GetFindingType() const
AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const
ValidatePolicyFinding & WithIssueCode(Aws::String &&value)
ValidatePolicyFinding & WithFindingDetails(const Aws::String &value)
AWS_ACCESSANALYZER_API ValidatePolicyFinding(Aws::Utils::Json::JsonView jsonValue)
ValidatePolicyFinding & WithFindingDetails(const char *value)
ValidatePolicyFinding & WithIssueCode(const char *value)
ValidatePolicyFinding & WithFindingType(ValidatePolicyFindingType &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue