AWS SDK for C++  1.9.104
AWS SDK for C++
AttachedManagedPolicy.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 SSOAdmin
22 {
23 namespace Model
24 {
25 
33  {
34  public:
39 
40 
44  inline const Aws::String& GetName() const{ return m_name; }
45 
49  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
50 
54  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
55 
59  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
60 
64  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
65 
69  inline AttachedManagedPolicy& WithName(const Aws::String& value) { SetName(value); return *this;}
70 
74  inline AttachedManagedPolicy& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
75 
79  inline AttachedManagedPolicy& WithName(const char* value) { SetName(value); return *this;}
80 
81 
88  inline const Aws::String& GetArn() const{ return m_arn; }
89 
96  inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
97 
104  inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
105 
112  inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
113 
120  inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
121 
128  inline AttachedManagedPolicy& WithArn(const Aws::String& value) { SetArn(value); return *this;}
129 
136  inline AttachedManagedPolicy& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
137 
144  inline AttachedManagedPolicy& WithArn(const char* value) { SetArn(value); return *this;}
145 
146  private:
147 
148  Aws::String m_name;
149  bool m_nameHasBeenSet;
150 
151  Aws::String m_arn;
152  bool m_arnHasBeenSet;
153  };
154 
155 } // namespace Model
156 } // namespace SSOAdmin
157 } // namespace Aws
Aws::SSOAdmin::Model::AttachedManagedPolicy::SetName
void SetName(const Aws::String &value)
Definition: AttachedManagedPolicy.h:54
AWS_SSOADMIN_API
#define AWS_SSOADMIN_API
Definition: SSOAdmin_EXPORTS.h:28
Aws::SSOAdmin::Model::AttachedManagedPolicy::WithName
AttachedManagedPolicy & WithName(const char *value)
Definition: AttachedManagedPolicy.h:79
Aws::SSOAdmin::Model::AttachedManagedPolicy::SetArn
void SetArn(const char *value)
Definition: AttachedManagedPolicy.h:120
Aws::SSOAdmin::Model::AttachedManagedPolicy::GetName
const Aws::String & GetName() const
Definition: AttachedManagedPolicy.h:44
SSOAdmin_EXPORTS.h
Aws::SSOAdmin::Model::AttachedManagedPolicy::ArnHasBeenSet
bool ArnHasBeenSet() const
Definition: AttachedManagedPolicy.h:96
Aws::SSOAdmin::Model::AttachedManagedPolicy::WithName
AttachedManagedPolicy & WithName(const Aws::String &value)
Definition: AttachedManagedPolicy.h:69
Aws::SSOAdmin::Model::AttachedManagedPolicy::SetArn
void SetArn(Aws::String &&value)
Definition: AttachedManagedPolicy.h:112
Aws::SSOAdmin::Model::AttachedManagedPolicy::WithArn
AttachedManagedPolicy & WithArn(const Aws::String &value)
Definition: AttachedManagedPolicy.h:128
Aws::SSOAdmin::Model::AttachedManagedPolicy
Definition: AttachedManagedPolicy.h:33
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::SSOAdmin::Model::AttachedManagedPolicy::WithArn
AttachedManagedPolicy & WithArn(const char *value)
Definition: AttachedManagedPolicy.h:144
Aws::SSOAdmin::Model::AttachedManagedPolicy::WithName
AttachedManagedPolicy & WithName(Aws::String &&value)
Definition: AttachedManagedPolicy.h:74
Aws::SSOAdmin::Model::AttachedManagedPolicy::SetArn
void SetArn(const Aws::String &value)
Definition: AttachedManagedPolicy.h:104
Aws
Definition: AccessManagementClient.h:15
Aws::SSOAdmin::Model::AttachedManagedPolicy::WithArn
AttachedManagedPolicy & WithArn(Aws::String &&value)
Definition: AttachedManagedPolicy.h:136
Aws::SSOAdmin::Model::AttachedManagedPolicy::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::SSOAdmin::Model::AttachedManagedPolicy::AttachedManagedPolicy
AttachedManagedPolicy()
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SSOAdmin::Model::AttachedManagedPolicy::SetName
void SetName(const char *value)
Definition: AttachedManagedPolicy.h:64
Aws::SSOAdmin::Model::AttachedManagedPolicy::GetArn
const Aws::String & GetArn() const
Definition: AttachedManagedPolicy.h:88
Aws::SSOAdmin::Model::AttachedManagedPolicy::operator=
AttachedManagedPolicy & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::SSOAdmin::Model::AttachedManagedPolicy::NameHasBeenSet
bool NameHasBeenSet() const
Definition: AttachedManagedPolicy.h:49
Aws::SSOAdmin::Model::AttachedManagedPolicy::SetName
void SetName(Aws::String &&value)
Definition: AttachedManagedPolicy.h:59
Aws::SSOAdmin::Model::AttachedManagedPolicy::AttachedManagedPolicy
AttachedManagedPolicy(Aws::Utils::Json::JsonView jsonValue)