AWS SDK for C++  1.9.155
AWS SDK for C++
GeneratedPolicy.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace AccessAnalyzer
22 {
23 namespace Model
24 {
25 
32  {
33  public:
38 
39 
46  inline const Aws::String& GetPolicy() const{ return m_policy; }
47 
54  inline bool PolicyHasBeenSet() const { return m_policyHasBeenSet; }
55 
62  inline void SetPolicy(const Aws::String& value) { m_policyHasBeenSet = true; m_policy = value; }
63 
70  inline void SetPolicy(Aws::String&& value) { m_policyHasBeenSet = true; m_policy = std::move(value); }
71 
78  inline void SetPolicy(const char* value) { m_policyHasBeenSet = true; m_policy.assign(value); }
79 
86  inline GeneratedPolicy& WithPolicy(const Aws::String& value) { SetPolicy(value); return *this;}
87 
94  inline GeneratedPolicy& WithPolicy(Aws::String&& value) { SetPolicy(std::move(value)); return *this;}
95 
102  inline GeneratedPolicy& WithPolicy(const char* value) { SetPolicy(value); return *this;}
103 
104  private:
105 
106  Aws::String m_policy;
107  bool m_policyHasBeenSet;
108  };
109 
110 } // namespace Model
111 } // namespace AccessAnalyzer
112 } // namespace Aws
Aws::AccessAnalyzer::Model::GeneratedPolicy::SetPolicy
void SetPolicy(Aws::String &&value)
Definition: GeneratedPolicy.h:70
Aws::AccessAnalyzer::Model::GeneratedPolicy::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
AccessAnalyzer_EXPORTS.h
Aws::AccessAnalyzer::Model::GeneratedPolicy::PolicyHasBeenSet
bool PolicyHasBeenSet() const
Definition: GeneratedPolicy.h:54
Aws::AccessAnalyzer::Model::GeneratedPolicy::SetPolicy
void SetPolicy(const char *value)
Definition: GeneratedPolicy.h:78
Aws::AccessAnalyzer::Model::GeneratedPolicy::WithPolicy
GeneratedPolicy & WithPolicy(Aws::String &&value)
Definition: GeneratedPolicy.h:94
Aws::AccessAnalyzer::Model::GeneratedPolicy
Definition: GeneratedPolicy.h:32
Aws::AccessAnalyzer::Model::GeneratedPolicy::WithPolicy
GeneratedPolicy & WithPolicy(const char *value)
Definition: GeneratedPolicy.h:102
Aws::AccessAnalyzer::Model::GeneratedPolicy::GeneratedPolicy
GeneratedPolicy(Aws::Utils::Json::JsonView jsonValue)
Aws::AccessAnalyzer::Model::GeneratedPolicy::WithPolicy
GeneratedPolicy & WithPolicy(const Aws::String &value)
Definition: GeneratedPolicy.h:86
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::AccessAnalyzer::Model::GeneratedPolicy::GeneratedPolicy
GeneratedPolicy()
Aws::AccessAnalyzer::Model::GeneratedPolicy::operator=
GeneratedPolicy & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
AWS_ACCESSANALYZER_API
#define AWS_ACCESSANALYZER_API
Definition: AccessAnalyzer_EXPORTS.h:28
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::AccessAnalyzer::Model::GeneratedPolicy::GetPolicy
const Aws::String & GetPolicy() const
Definition: GeneratedPolicy.h:46
Aws::AccessAnalyzer::Model::GeneratedPolicy::SetPolicy
void SetPolicy(const Aws::String &value)
Definition: GeneratedPolicy.h:62