AWS SDK for C++  1.9.19
AWS SDK for C++
IamInstanceProfile.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 GuardDuty
22 {
23 namespace Model
24 {
25 
33  {
34  public:
39 
40 
44  inline const Aws::String& GetArn() const{ return m_arn; }
45 
49  inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
50 
54  inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
55 
59  inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
60 
64  inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
65 
69  inline IamInstanceProfile& WithArn(const Aws::String& value) { SetArn(value); return *this;}
70 
74  inline IamInstanceProfile& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
75 
79  inline IamInstanceProfile& WithArn(const char* value) { SetArn(value); return *this;}
80 
81 
85  inline const Aws::String& GetId() const{ return m_id; }
86 
90  inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
91 
95  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
96 
100  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
101 
105  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
106 
110  inline IamInstanceProfile& WithId(const Aws::String& value) { SetId(value); return *this;}
111 
115  inline IamInstanceProfile& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
116 
120  inline IamInstanceProfile& WithId(const char* value) { SetId(value); return *this;}
121 
122  private:
123 
124  Aws::String m_arn;
125  bool m_arnHasBeenSet;
126 
127  Aws::String m_id;
128  bool m_idHasBeenSet;
129  };
130 
131 } // namespace Model
132 } // namespace GuardDuty
133 } // namespace Aws
Aws::GuardDuty::Model::IamInstanceProfile::WithArn
IamInstanceProfile & WithArn(Aws::String &&value)
Definition: IamInstanceProfile.h:74
Aws::GuardDuty::Model::IamInstanceProfile::SetId
void SetId(const char *value)
Definition: IamInstanceProfile.h:105
Aws::GuardDuty::Model::IamInstanceProfile::GetArn
const Aws::String & GetArn() const
Definition: IamInstanceProfile.h:44
Aws::GuardDuty::Model::IamInstanceProfile::IamInstanceProfile
IamInstanceProfile(Aws::Utils::Json::JsonView jsonValue)
Aws::GuardDuty::Model::IamInstanceProfile::SetArn
void SetArn(const char *value)
Definition: IamInstanceProfile.h:64
Aws::GuardDuty::Model::IamInstanceProfile::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::GuardDuty::Model::IamInstanceProfile::WithId
IamInstanceProfile & WithId(const char *value)
Definition: IamInstanceProfile.h:120
Aws::GuardDuty::Model::IamInstanceProfile::WithId
IamInstanceProfile & WithId(Aws::String &&value)
Definition: IamInstanceProfile.h:115
Aws::GuardDuty::Model::IamInstanceProfile::WithArn
IamInstanceProfile & WithArn(const Aws::String &value)
Definition: IamInstanceProfile.h:69
Aws::GuardDuty::Model::IamInstanceProfile::WithId
IamInstanceProfile & WithId(const Aws::String &value)
Definition: IamInstanceProfile.h:110
GuardDuty_EXPORTS.h
Aws::GuardDuty::Model::IamInstanceProfile::SetArn
void SetArn(const Aws::String &value)
Definition: IamInstanceProfile.h:54
AWS_GUARDDUTY_API
#define AWS_GUARDDUTY_API
Definition: GuardDuty_EXPORTS.h:28
Aws::GuardDuty::Model::IamInstanceProfile::WithArn
IamInstanceProfile & WithArn(const char *value)
Definition: IamInstanceProfile.h:79
Aws::GuardDuty::Model::IamInstanceProfile::SetId
void SetId(const Aws::String &value)
Definition: IamInstanceProfile.h:95
Aws::GuardDuty::Model::IamInstanceProfile
Definition: IamInstanceProfile.h:33
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::GuardDuty::Model::IamInstanceProfile::IdHasBeenSet
bool IdHasBeenSet() const
Definition: IamInstanceProfile.h:90
Aws::GuardDuty::Model::IamInstanceProfile::SetArn
void SetArn(Aws::String &&value)
Definition: IamInstanceProfile.h:59
Aws::GuardDuty::Model::IamInstanceProfile::operator=
IamInstanceProfile & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws
Definition: AccessManagementClient.h:15
Aws::GuardDuty::Model::IamInstanceProfile::ArnHasBeenSet
bool ArnHasBeenSet() const
Definition: IamInstanceProfile.h:49
Aws::GuardDuty::Model::IamInstanceProfile::IamInstanceProfile
IamInstanceProfile()
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::GuardDuty::Model::IamInstanceProfile::SetId
void SetId(Aws::String &&value)
Definition: IamInstanceProfile.h:100
Aws::GuardDuty::Model::IamInstanceProfile::GetId
const Aws::String & GetId() const
Definition: IamInstanceProfile.h:85