AWS SDK for C++  1.9.155
AWS SDK for C++
IamRoleConfiguration.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 
40  {
41  public:
46 
47 
51  inline const Aws::String& GetTrustPolicy() const{ return m_trustPolicy; }
52 
56  inline bool TrustPolicyHasBeenSet() const { return m_trustPolicyHasBeenSet; }
57 
61  inline void SetTrustPolicy(const Aws::String& value) { m_trustPolicyHasBeenSet = true; m_trustPolicy = value; }
62 
66  inline void SetTrustPolicy(Aws::String&& value) { m_trustPolicyHasBeenSet = true; m_trustPolicy = std::move(value); }
67 
71  inline void SetTrustPolicy(const char* value) { m_trustPolicyHasBeenSet = true; m_trustPolicy.assign(value); }
72 
76  inline IamRoleConfiguration& WithTrustPolicy(const Aws::String& value) { SetTrustPolicy(value); return *this;}
77 
81  inline IamRoleConfiguration& WithTrustPolicy(Aws::String&& value) { SetTrustPolicy(std::move(value)); return *this;}
82 
86  inline IamRoleConfiguration& WithTrustPolicy(const char* value) { SetTrustPolicy(value); return *this;}
87 
88  private:
89 
90  Aws::String m_trustPolicy;
91  bool m_trustPolicyHasBeenSet;
92  };
93 
94 } // namespace Model
95 } // namespace AccessAnalyzer
96 } // namespace Aws
Aws::AccessAnalyzer::Model::IamRoleConfiguration::WithTrustPolicy
IamRoleConfiguration & WithTrustPolicy(const char *value)
Definition: IamRoleConfiguration.h:86
AccessAnalyzer_EXPORTS.h
Aws::AccessAnalyzer::Model::IamRoleConfiguration::operator=
IamRoleConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::AccessAnalyzer::Model::IamRoleConfiguration::SetTrustPolicy
void SetTrustPolicy(Aws::String &&value)
Definition: IamRoleConfiguration.h:66
Aws::AccessAnalyzer::Model::IamRoleConfiguration::WithTrustPolicy
IamRoleConfiguration & WithTrustPolicy(Aws::String &&value)
Definition: IamRoleConfiguration.h:81
Aws::AccessAnalyzer::Model::IamRoleConfiguration::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::AccessAnalyzer::Model::IamRoleConfiguration::TrustPolicyHasBeenSet
bool TrustPolicyHasBeenSet() const
Definition: IamRoleConfiguration.h:56
Aws::AccessAnalyzer::Model::IamRoleConfiguration
Definition: IamRoleConfiguration.h:40
Aws::AccessAnalyzer::Model::IamRoleConfiguration::GetTrustPolicy
const Aws::String & GetTrustPolicy() const
Definition: IamRoleConfiguration.h:51
Aws::AccessAnalyzer::Model::IamRoleConfiguration::SetTrustPolicy
void SetTrustPolicy(const Aws::String &value)
Definition: IamRoleConfiguration.h:61
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::AccessAnalyzer::Model::IamRoleConfiguration::WithTrustPolicy
IamRoleConfiguration & WithTrustPolicy(const Aws::String &value)
Definition: IamRoleConfiguration.h:76
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::IamRoleConfiguration::IamRoleConfiguration
IamRoleConfiguration(Aws::Utils::Json::JsonView jsonValue)
Aws::AccessAnalyzer::Model::IamRoleConfiguration::IamRoleConfiguration
IamRoleConfiguration()
Aws::AccessAnalyzer::Model::IamRoleConfiguration::SetTrustPolicy
void SetTrustPolicy(const char *value)
Definition: IamRoleConfiguration.h:71