AWS SDK for C++  1.9.155
AWS SDK for C++
PolicyGenerationDetails.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 
33  {
34  public:
39 
40 
45  inline const Aws::String& GetPrincipalArn() const{ return m_principalArn; }
46 
51  inline bool PrincipalArnHasBeenSet() const { return m_principalArnHasBeenSet; }
52 
57  inline void SetPrincipalArn(const Aws::String& value) { m_principalArnHasBeenSet = true; m_principalArn = value; }
58 
63  inline void SetPrincipalArn(Aws::String&& value) { m_principalArnHasBeenSet = true; m_principalArn = std::move(value); }
64 
69  inline void SetPrincipalArn(const char* value) { m_principalArnHasBeenSet = true; m_principalArn.assign(value); }
70 
75  inline PolicyGenerationDetails& WithPrincipalArn(const Aws::String& value) { SetPrincipalArn(value); return *this;}
76 
81  inline PolicyGenerationDetails& WithPrincipalArn(Aws::String&& value) { SetPrincipalArn(std::move(value)); return *this;}
82 
87  inline PolicyGenerationDetails& WithPrincipalArn(const char* value) { SetPrincipalArn(value); return *this;}
88 
89  private:
90 
91  Aws::String m_principalArn;
92  bool m_principalArnHasBeenSet;
93  };
94 
95 } // namespace Model
96 } // namespace AccessAnalyzer
97 } // namespace Aws
Aws::AccessAnalyzer::Model::PolicyGenerationDetails::operator=
PolicyGenerationDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::AccessAnalyzer::Model::PolicyGenerationDetails::WithPrincipalArn
PolicyGenerationDetails & WithPrincipalArn(const char *value)
Definition: PolicyGenerationDetails.h:87
AccessAnalyzer_EXPORTS.h
Aws::AccessAnalyzer::Model::PolicyGenerationDetails
Definition: PolicyGenerationDetails.h:33
Aws::AccessAnalyzer::Model::PolicyGenerationDetails::WithPrincipalArn
PolicyGenerationDetails & WithPrincipalArn(const Aws::String &value)
Definition: PolicyGenerationDetails.h:75
Aws::AccessAnalyzer::Model::PolicyGenerationDetails::SetPrincipalArn
void SetPrincipalArn(const Aws::String &value)
Definition: PolicyGenerationDetails.h:57
Aws::AccessAnalyzer::Model::PolicyGenerationDetails::PolicyGenerationDetails
PolicyGenerationDetails()
Aws::AccessAnalyzer::Model::PolicyGenerationDetails::GetPrincipalArn
const Aws::String & GetPrincipalArn() const
Definition: PolicyGenerationDetails.h:45
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::AccessAnalyzer::Model::PolicyGenerationDetails::WithPrincipalArn
PolicyGenerationDetails & WithPrincipalArn(Aws::String &&value)
Definition: PolicyGenerationDetails.h:81
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::AccessAnalyzer::Model::PolicyGenerationDetails::SetPrincipalArn
void SetPrincipalArn(Aws::String &&value)
Definition: PolicyGenerationDetails.h:63
AWS_ACCESSANALYZER_API
#define AWS_ACCESSANALYZER_API
Definition: AccessAnalyzer_EXPORTS.h:28
Aws::AccessAnalyzer::Model::PolicyGenerationDetails::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::AccessAnalyzer::Model::PolicyGenerationDetails::SetPrincipalArn
void SetPrincipalArn(const char *value)
Definition: PolicyGenerationDetails.h:69
Aws::AccessAnalyzer::Model::PolicyGenerationDetails::PolicyGenerationDetails
PolicyGenerationDetails(Aws::Utils::Json::JsonView jsonValue)
Aws::AccessAnalyzer::Model::PolicyGenerationDetails::PrincipalArnHasBeenSet
bool PrincipalArnHasBeenSet() const
Definition: PolicyGenerationDetails.h:51