AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const Locale& GetLocale() const{ return m_locale; }
49 inline bool LocaleHasBeenSet() const { return m_localeHasBeenSet; }
50 inline void SetLocale(const Locale& value) { m_localeHasBeenSet = true; m_locale = value; }
51 inline void SetLocale(Locale&& value) { m_localeHasBeenSet = true; m_locale = std::move(value); }
52 inline ValidatePolicyRequest& WithLocale(const Locale& value) { SetLocale(value); return *this;}
53 inline ValidatePolicyRequest& WithLocale(Locale&& value) { SetLocale(std::move(value)); return *this;}
55
57
60 inline int GetMaxResults() const{ return m_maxResults; }
61 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
62 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
63 inline ValidatePolicyRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
65
67
70 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
71 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
72 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
73 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
74 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
75 inline ValidatePolicyRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
76 inline ValidatePolicyRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
77 inline ValidatePolicyRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
79
81
84 inline const Aws::String& GetPolicyDocument() const{ return m_policyDocument; }
85 inline bool PolicyDocumentHasBeenSet() const { return m_policyDocumentHasBeenSet; }
86 inline void SetPolicyDocument(const Aws::String& value) { m_policyDocumentHasBeenSet = true; m_policyDocument = value; }
87 inline void SetPolicyDocument(Aws::String&& value) { m_policyDocumentHasBeenSet = true; m_policyDocument = std::move(value); }
88 inline void SetPolicyDocument(const char* value) { m_policyDocumentHasBeenSet = true; m_policyDocument.assign(value); }
89 inline ValidatePolicyRequest& WithPolicyDocument(const Aws::String& value) { SetPolicyDocument(value); return *this;}
90 inline ValidatePolicyRequest& WithPolicyDocument(Aws::String&& value) { SetPolicyDocument(std::move(value)); return *this;}
91 inline ValidatePolicyRequest& WithPolicyDocument(const char* value) { SetPolicyDocument(value); return *this;}
93
95
106 inline const PolicyType& GetPolicyType() const{ return m_policyType; }
107 inline bool PolicyTypeHasBeenSet() const { return m_policyTypeHasBeenSet; }
108 inline void SetPolicyType(const PolicyType& value) { m_policyTypeHasBeenSet = true; m_policyType = value; }
109 inline void SetPolicyType(PolicyType&& value) { m_policyTypeHasBeenSet = true; m_policyType = std::move(value); }
110 inline ValidatePolicyRequest& WithPolicyType(const PolicyType& value) { SetPolicyType(value); return *this;}
111 inline ValidatePolicyRequest& WithPolicyType(PolicyType&& value) { SetPolicyType(std::move(value)); return *this;}
113
115
126 inline const ValidatePolicyResourceType& GetValidatePolicyResourceType() const{ return m_validatePolicyResourceType; }
127 inline bool ValidatePolicyResourceTypeHasBeenSet() const { return m_validatePolicyResourceTypeHasBeenSet; }
128 inline void SetValidatePolicyResourceType(const ValidatePolicyResourceType& value) { m_validatePolicyResourceTypeHasBeenSet = true; m_validatePolicyResourceType = value; }
129 inline void SetValidatePolicyResourceType(ValidatePolicyResourceType&& value) { m_validatePolicyResourceTypeHasBeenSet = true; m_validatePolicyResourceType = std::move(value); }
133 private:
134
135 Locale m_locale;
136 bool m_localeHasBeenSet = false;
137
138 int m_maxResults;
139 bool m_maxResultsHasBeenSet = false;
140
141 Aws::String m_nextToken;
142 bool m_nextTokenHasBeenSet = false;
143
144 Aws::String m_policyDocument;
145 bool m_policyDocumentHasBeenSet = false;
146
147 PolicyType m_policyType;
148 bool m_policyTypeHasBeenSet = false;
149
150 ValidatePolicyResourceType m_validatePolicyResourceType;
151 bool m_validatePolicyResourceTypeHasBeenSet = false;
152 };
153
154} // namespace Model
155} // namespace AccessAnalyzer
156} // namespace Aws
void SetValidatePolicyResourceType(ValidatePolicyResourceType &&value)
ValidatePolicyRequest & WithPolicyType(PolicyType &&value)
ValidatePolicyRequest & WithLocale(const Locale &value)
ValidatePolicyRequest & WithPolicyType(const PolicyType &value)
ValidatePolicyRequest & WithNextToken(const Aws::String &value)
ValidatePolicyRequest & WithNextToken(const char *value)
virtual const char * GetServiceRequestName() const override
ValidatePolicyRequest & WithLocale(Locale &&value)
AWS_ACCESSANALYZER_API Aws::String SerializePayload() const override
ValidatePolicyRequest & WithNextToken(Aws::String &&value)
const ValidatePolicyResourceType & GetValidatePolicyResourceType() const
AWS_ACCESSANALYZER_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
ValidatePolicyRequest & WithValidatePolicyResourceType(const ValidatePolicyResourceType &value)
void SetValidatePolicyResourceType(const ValidatePolicyResourceType &value)
ValidatePolicyRequest & WithPolicyDocument(const Aws::String &value)
ValidatePolicyRequest & WithPolicyDocument(const char *value)
ValidatePolicyRequest & WithPolicyDocument(Aws::String &&value)
ValidatePolicyRequest & WithValidatePolicyResourceType(ValidatePolicyResourceType &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String