AWS SDK for C++  1.8.152
AWS SDK for C++
ShareTarget.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace DirectoryService
23 {
24 namespace Model
25 {
26 
34  {
35  public:
40 
41 
45  inline const Aws::String& GetId() const{ return m_id; }
46 
50  inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
51 
55  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
56 
60  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
61 
65  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
66 
70  inline ShareTarget& WithId(const Aws::String& value) { SetId(value); return *this;}
71 
75  inline ShareTarget& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
76 
80  inline ShareTarget& WithId(const char* value) { SetId(value); return *this;}
81 
82 
86  inline const TargetType& GetType() const{ return m_type; }
87 
91  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
92 
96  inline void SetType(const TargetType& value) { m_typeHasBeenSet = true; m_type = value; }
97 
101  inline void SetType(TargetType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
102 
106  inline ShareTarget& WithType(const TargetType& value) { SetType(value); return *this;}
107 
111  inline ShareTarget& WithType(TargetType&& value) { SetType(std::move(value)); return *this;}
112 
113  private:
114 
115  Aws::String m_id;
116  bool m_idHasBeenSet;
117 
118  TargetType m_type;
119  bool m_typeHasBeenSet;
120  };
121 
122 } // namespace Model
123 } // namespace DirectoryService
124 } // namespace Aws
Aws::DirectoryService::Model::ShareTarget::WithId
ShareTarget & WithId(const char *value)
Definition: ShareTarget.h:80
Aws::DirectoryService::Model::ShareTarget::ShareTarget
ShareTarget(Aws::Utils::Json::JsonView jsonValue)
AWS_DIRECTORYSERVICE_API
#define AWS_DIRECTORYSERVICE_API
Definition: DirectoryService_EXPORTS.h:28
Aws::DirectoryService::Model::ShareTarget::operator=
ShareTarget & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::DirectoryService::Model::ShareTarget::WithId
ShareTarget & WithId(Aws::String &&value)
Definition: ShareTarget.h:75
Aws::DirectoryService::Model::ShareTarget::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::DirectoryService::Model::ShareTarget::GetType
const TargetType & GetType() const
Definition: ShareTarget.h:86
Aws::DirectoryService::Model::ShareTarget
Definition: ShareTarget.h:34
DirectoryService_EXPORTS.h
Aws::DirectoryService::Model::ShareTarget::SetType
void SetType(TargetType &&value)
Definition: ShareTarget.h:101
Aws::DirectoryService::Model::ShareTarget::SetId
void SetId(const Aws::String &value)
Definition: ShareTarget.h:55
Aws::DirectoryService::Model::TargetType
TargetType
Definition: TargetType.h:17
Aws::DirectoryService::Model::ShareTarget::IdHasBeenSet
bool IdHasBeenSet() const
Definition: ShareTarget.h:50
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
Aws::DirectoryService::Model::ShareTarget::ShareTarget
ShareTarget()
AWSString.h
Aws::DirectoryService::Model::ShareTarget::WithType
ShareTarget & WithType(TargetType &&value)
Definition: ShareTarget.h:111
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::DirectoryService::Model::ShareTarget::WithId
ShareTarget & WithId(const Aws::String &value)
Definition: ShareTarget.h:70
Aws::DirectoryService::Model::ShareTarget::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: ShareTarget.h:91
Aws::DirectoryService::Model::ShareTarget::GetId
const Aws::String & GetId() const
Definition: ShareTarget.h:45
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
TargetType.h
Aws::DirectoryService::Model::ShareTarget::SetType
void SetType(const TargetType &value)
Definition: ShareTarget.h:96
Aws::DirectoryService::Model::ShareTarget::SetId
void SetId(const char *value)
Definition: ShareTarget.h:65
Aws::DirectoryService::Model::ShareTarget::SetId
void SetId(Aws::String &&value)
Definition: ShareTarget.h:60
Aws::DirectoryService::Model::ShareTarget::WithType
ShareTarget & WithType(const TargetType &value)
Definition: ShareTarget.h:106