AWS SDK for C++  1.9.104
AWS SDK for C++
Owner.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 
32  {
33  public:
34  Owner();
38 
39 
46  inline const Aws::String& GetId() const{ return m_id; }
47 
54  inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
55 
62  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
63 
70  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
71 
78  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
79 
86  inline Owner& WithId(const Aws::String& value) { SetId(value); return *this;}
87 
94  inline Owner& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
95 
102  inline Owner& WithId(const char* value) { SetId(value); return *this;}
103 
104  private:
105 
106  Aws::String m_id;
107  bool m_idHasBeenSet;
108  };
109 
110 } // namespace Model
111 } // namespace GuardDuty
112 } // namespace Aws
Aws::GuardDuty::Model::Owner::Owner
Owner()
Aws::GuardDuty::Model::Owner::WithId
Owner & WithId(const Aws::String &value)
Definition: Owner.h:86
Aws::GuardDuty::Model::Owner::WithId
Owner & WithId(const char *value)
Definition: Owner.h:102
Aws::GuardDuty::Model::Owner::SetId
void SetId(const char *value)
Definition: Owner.h:78
GuardDuty_EXPORTS.h
Aws::GuardDuty::Model::Owner::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
AWS_GUARDDUTY_API
#define AWS_GUARDDUTY_API
Definition: GuardDuty_EXPORTS.h:28
Aws::GuardDuty::Model::Owner::WithId
Owner & WithId(Aws::String &&value)
Definition: Owner.h:94
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws
Definition: AccessManagementClient.h:15
Aws::GuardDuty::Model::Owner::GetId
const Aws::String & GetId() const
Definition: Owner.h:46
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::GuardDuty::Model::Owner::operator=
Owner & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::GuardDuty::Model::Owner::SetId
void SetId(Aws::String &&value)
Definition: Owner.h:70
Aws::GuardDuty::Model::Owner::Owner
Owner(Aws::Utils::Json::JsonView jsonValue)
Aws::GuardDuty::Model::Owner::IdHasBeenSet
bool IdHasBeenSet() const
Definition: Owner.h:54
Aws::GuardDuty::Model::Owner::SetId
void SetId(const Aws::String &value)
Definition: Owner.h:62
Aws::GuardDuty::Model::Owner
Definition: Owner.h:32