AWS SDK for C++  1.9.157
AWS SDK for C++
GeneratedPolicyProperties.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace AccessAnalyzer
23 {
24 namespace Model
25 {
26 
33  {
34  public:
39 
40 
44  inline const CloudTrailProperties& GetCloudTrailProperties() const{ return m_cloudTrailProperties; }
45 
49  inline bool CloudTrailPropertiesHasBeenSet() const { return m_cloudTrailPropertiesHasBeenSet; }
50 
54  inline void SetCloudTrailProperties(const CloudTrailProperties& value) { m_cloudTrailPropertiesHasBeenSet = true; m_cloudTrailProperties = value; }
55 
59  inline void SetCloudTrailProperties(CloudTrailProperties&& value) { m_cloudTrailPropertiesHasBeenSet = true; m_cloudTrailProperties = std::move(value); }
60 
64  inline GeneratedPolicyProperties& WithCloudTrailProperties(const CloudTrailProperties& value) { SetCloudTrailProperties(value); return *this;}
65 
69  inline GeneratedPolicyProperties& WithCloudTrailProperties(CloudTrailProperties&& value) { SetCloudTrailProperties(std::move(value)); return *this;}
70 
71 
77  inline bool GetIsComplete() const{ return m_isComplete; }
78 
84  inline bool IsCompleteHasBeenSet() const { return m_isCompleteHasBeenSet; }
85 
91  inline void SetIsComplete(bool value) { m_isCompleteHasBeenSet = true; m_isComplete = value; }
92 
98  inline GeneratedPolicyProperties& WithIsComplete(bool value) { SetIsComplete(value); return *this;}
99 
100 
105  inline const Aws::String& GetPrincipalArn() const{ return m_principalArn; }
106 
111  inline bool PrincipalArnHasBeenSet() const { return m_principalArnHasBeenSet; }
112 
117  inline void SetPrincipalArn(const Aws::String& value) { m_principalArnHasBeenSet = true; m_principalArn = value; }
118 
123  inline void SetPrincipalArn(Aws::String&& value) { m_principalArnHasBeenSet = true; m_principalArn = std::move(value); }
124 
129  inline void SetPrincipalArn(const char* value) { m_principalArnHasBeenSet = true; m_principalArn.assign(value); }
130 
135  inline GeneratedPolicyProperties& WithPrincipalArn(const Aws::String& value) { SetPrincipalArn(value); return *this;}
136 
141  inline GeneratedPolicyProperties& WithPrincipalArn(Aws::String&& value) { SetPrincipalArn(std::move(value)); return *this;}
142 
147  inline GeneratedPolicyProperties& WithPrincipalArn(const char* value) { SetPrincipalArn(value); return *this;}
148 
149  private:
150 
151  CloudTrailProperties m_cloudTrailProperties;
152  bool m_cloudTrailPropertiesHasBeenSet;
153 
154  bool m_isComplete;
155  bool m_isCompleteHasBeenSet;
156 
157  Aws::String m_principalArn;
158  bool m_principalArnHasBeenSet;
159  };
160 
161 } // namespace Model
162 } // namespace AccessAnalyzer
163 } // namespace Aws
Aws::AccessAnalyzer::Model::GeneratedPolicyProperties::GetIsComplete
bool GetIsComplete() const
Definition: GeneratedPolicyProperties.h:77
Aws::AccessAnalyzer::Model::GeneratedPolicyProperties::SetCloudTrailProperties
void SetCloudTrailProperties(CloudTrailProperties &&value)
Definition: GeneratedPolicyProperties.h:59
Aws::AccessAnalyzer::Model::GeneratedPolicyProperties::GetCloudTrailProperties
const CloudTrailProperties & GetCloudTrailProperties() const
Definition: GeneratedPolicyProperties.h:44
AccessAnalyzer_EXPORTS.h
Aws::AccessAnalyzer::Model::GeneratedPolicyProperties::WithCloudTrailProperties
GeneratedPolicyProperties & WithCloudTrailProperties(const CloudTrailProperties &value)
Definition: GeneratedPolicyProperties.h:64
CloudTrailProperties.h
Aws::AccessAnalyzer::Model::GeneratedPolicyProperties::GeneratedPolicyProperties
GeneratedPolicyProperties()
Aws::AccessAnalyzer::Model::GeneratedPolicyProperties::PrincipalArnHasBeenSet
bool PrincipalArnHasBeenSet() const
Definition: GeneratedPolicyProperties.h:111
Aws::AccessAnalyzer::Model::GeneratedPolicyProperties
Definition: GeneratedPolicyProperties.h:33
Aws::AccessAnalyzer::Model::GeneratedPolicyProperties::SetPrincipalArn
void SetPrincipalArn(Aws::String &&value)
Definition: GeneratedPolicyProperties.h:123
Aws::AccessAnalyzer::Model::GeneratedPolicyProperties::IsCompleteHasBeenSet
bool IsCompleteHasBeenSet() const
Definition: GeneratedPolicyProperties.h:84
Aws::AccessAnalyzer::Model::GeneratedPolicyProperties::SetPrincipalArn
void SetPrincipalArn(const Aws::String &value)
Definition: GeneratedPolicyProperties.h:117
Aws::AccessAnalyzer::Model::GeneratedPolicyProperties::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::AccessAnalyzer::Model::GeneratedPolicyProperties::WithCloudTrailProperties
GeneratedPolicyProperties & WithCloudTrailProperties(CloudTrailProperties &&value)
Definition: GeneratedPolicyProperties.h:69
Aws::AccessAnalyzer::Model::GeneratedPolicyProperties::WithPrincipalArn
GeneratedPolicyProperties & WithPrincipalArn(const char *value)
Definition: GeneratedPolicyProperties.h:147
Aws::AccessAnalyzer::Model::GeneratedPolicyProperties::WithPrincipalArn
GeneratedPolicyProperties & WithPrincipalArn(Aws::String &&value)
Definition: GeneratedPolicyProperties.h:141
Aws::AccessAnalyzer::Model::GeneratedPolicyProperties::SetIsComplete
void SetIsComplete(bool value)
Definition: GeneratedPolicyProperties.h:91
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::AccessAnalyzer::Model::CloudTrailProperties
Definition: CloudTrailProperties.h:34
Aws::AccessAnalyzer::Model::GeneratedPolicyProperties::WithIsComplete
GeneratedPolicyProperties & WithIsComplete(bool value)
Definition: GeneratedPolicyProperties.h:98
Aws::AccessAnalyzer::Model::GeneratedPolicyProperties::GeneratedPolicyProperties
GeneratedPolicyProperties(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::AccessAnalyzer::Model::GeneratedPolicyProperties::SetPrincipalArn
void SetPrincipalArn(const char *value)
Definition: GeneratedPolicyProperties.h:129
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::AccessAnalyzer::Model::GeneratedPolicyProperties::CloudTrailPropertiesHasBeenSet
bool CloudTrailPropertiesHasBeenSet() const
Definition: GeneratedPolicyProperties.h:49
Aws::AccessAnalyzer::Model::GeneratedPolicyProperties::operator=
GeneratedPolicyProperties & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::AccessAnalyzer::Model::GeneratedPolicyProperties::GetPrincipalArn
const Aws::String & GetPrincipalArn() const
Definition: GeneratedPolicyProperties.h:105
Aws::AccessAnalyzer::Model::GeneratedPolicyProperties::SetCloudTrailProperties
void SetCloudTrailProperties(const CloudTrailProperties &value)
Definition: GeneratedPolicyProperties.h:54
Aws::AccessAnalyzer::Model::GeneratedPolicyProperties::WithPrincipalArn
GeneratedPolicyProperties & WithPrincipalArn(const Aws::String &value)
Definition: GeneratedPolicyProperties.h:135