AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ValidatePolicyRequest.h
1
6#pragma once
7#include <aws/accessanalyzer/AccessAnalyzer_EXPORTS.h>
8#include <aws/accessanalyzer/AccessAnalyzerRequest.h>
9#include <aws/accessanalyzer/model/Locale.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/accessanalyzer/model/PolicyType.h>
12#include <aws/accessanalyzer/model/ValidatePolicyResourceType.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Http
18{
19 class URI;
20} //namespace Http
21namespace AccessAnalyzer
22{
23namespace Model
24{
25
29 {
30 public:
31 AWS_ACCESSANALYZER_API ValidatePolicyRequest() = default;
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "ValidatePolicy"; }
38
39 AWS_ACCESSANALYZER_API Aws::String SerializePayload() const override;
40
41 AWS_ACCESSANALYZER_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
42
43
45
48 inline Locale GetLocale() const { return m_locale; }
49 inline bool LocaleHasBeenSet() const { return m_localeHasBeenSet; }
50 inline void SetLocale(Locale value) { m_localeHasBeenSet = true; m_locale = value; }
51 inline ValidatePolicyRequest& WithLocale(Locale value) { SetLocale(value); return *this;}
53
55
58 inline int GetMaxResults() const { return m_maxResults; }
59 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
60 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
61 inline ValidatePolicyRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
63
65
68 inline const Aws::String& GetNextToken() const { return m_nextToken; }
69 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
70 template<typename NextTokenT = Aws::String>
71 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
72 template<typename NextTokenT = Aws::String>
73 ValidatePolicyRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
75
77
80 inline const Aws::String& GetPolicyDocument() const { return m_policyDocument; }
81 inline bool PolicyDocumentHasBeenSet() const { return m_policyDocumentHasBeenSet; }
82 template<typename PolicyDocumentT = Aws::String>
83 void SetPolicyDocument(PolicyDocumentT&& value) { m_policyDocumentHasBeenSet = true; m_policyDocument = std::forward<PolicyDocumentT>(value); }
84 template<typename PolicyDocumentT = Aws::String>
85 ValidatePolicyRequest& WithPolicyDocument(PolicyDocumentT&& value) { SetPolicyDocument(std::forward<PolicyDocumentT>(value)); return *this;}
87
89
100 inline PolicyType GetPolicyType() const { return m_policyType; }
101 inline bool PolicyTypeHasBeenSet() const { return m_policyTypeHasBeenSet; }
102 inline void SetPolicyType(PolicyType value) { m_policyTypeHasBeenSet = true; m_policyType = value; }
103 inline ValidatePolicyRequest& WithPolicyType(PolicyType value) { SetPolicyType(value); return *this;}
105
107
118 inline ValidatePolicyResourceType GetValidatePolicyResourceType() const { return m_validatePolicyResourceType; }
119 inline bool ValidatePolicyResourceTypeHasBeenSet() const { return m_validatePolicyResourceTypeHasBeenSet; }
120 inline void SetValidatePolicyResourceType(ValidatePolicyResourceType value) { m_validatePolicyResourceTypeHasBeenSet = true; m_validatePolicyResourceType = value; }
123 private:
124
125 Locale m_locale{Locale::NOT_SET};
126 bool m_localeHasBeenSet = false;
127
128 int m_maxResults{0};
129 bool m_maxResultsHasBeenSet = false;
130
131 Aws::String m_nextToken;
132 bool m_nextTokenHasBeenSet = false;
133
134 Aws::String m_policyDocument;
135 bool m_policyDocumentHasBeenSet = false;
136
137 PolicyType m_policyType{PolicyType::NOT_SET};
138 bool m_policyTypeHasBeenSet = false;
139
141 bool m_validatePolicyResourceTypeHasBeenSet = false;
142 };
143
144} // namespace Model
145} // namespace AccessAnalyzer
146} // namespace Aws
void SetValidatePolicyResourceType(ValidatePolicyResourceType value)
virtual const char * GetServiceRequestName() const override
ValidatePolicyRequest & WithPolicyDocument(PolicyDocumentT &&value)
AWS_ACCESSANALYZER_API Aws::String SerializePayload() const override
ValidatePolicyRequest & WithNextToken(NextTokenT &&value)
AWS_ACCESSANALYZER_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
ValidatePolicyResourceType GetValidatePolicyResourceType() const
ValidatePolicyRequest & WithValidatePolicyResourceType(ValidatePolicyResourceType value)
ValidatePolicyRequest & WithPolicyType(PolicyType value)
AWS_ACCESSANALYZER_API ValidatePolicyRequest()=default
ValidatePolicyRequest & WithLocale(Locale value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String