AWS SDK for C++  1.8.152
AWS SDK for C++
UnshareTarget.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 UnshareTarget& WithId(const Aws::String& value) { SetId(value); return *this;}
71 
75  inline UnshareTarget& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
76 
80  inline UnshareTarget& 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 UnshareTarget& WithType(const TargetType& value) { SetType(value); return *this;}
107 
111  inline UnshareTarget& 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::UnshareTarget::WithType
UnshareTarget & WithType(const TargetType &value)
Definition: UnshareTarget.h:106
Aws::DirectoryService::Model::UnshareTarget::SetId
void SetId(Aws::String &&value)
Definition: UnshareTarget.h:60
AWS_DIRECTORYSERVICE_API
#define AWS_DIRECTORYSERVICE_API
Definition: DirectoryService_EXPORTS.h:28
Aws::DirectoryService::Model::UnshareTarget::SetId
void SetId(const Aws::String &value)
Definition: UnshareTarget.h:55
Aws::DirectoryService::Model::UnshareTarget::SetType
void SetType(const TargetType &value)
Definition: UnshareTarget.h:96
DirectoryService_EXPORTS.h
Aws::DirectoryService::Model::UnshareTarget::SetId
void SetId(const char *value)
Definition: UnshareTarget.h:65
Aws::DirectoryService::Model::UnshareTarget::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::DirectoryService::Model::TargetType
TargetType
Definition: TargetType.h:17
Aws::DirectoryService::Model::UnshareTarget
Definition: UnshareTarget.h:34
Aws::DirectoryService::Model::UnshareTarget::GetId
const Aws::String & GetId() const
Definition: UnshareTarget.h:45
Aws::DirectoryService::Model::UnshareTarget::WithId
UnshareTarget & WithId(const Aws::String &value)
Definition: UnshareTarget.h:70
Aws::DirectoryService::Model::UnshareTarget::UnshareTarget
UnshareTarget(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::DirectoryService::Model::UnshareTarget::GetType
const TargetType & GetType() const
Definition: UnshareTarget.h:86
Aws::DirectoryService::Model::UnshareTarget::UnshareTarget
UnshareTarget()
Aws::DirectoryService::Model::UnshareTarget::WithType
UnshareTarget & WithType(TargetType &&value)
Definition: UnshareTarget.h:111
Aws
Definition: AccessManagementClient.h:15
Aws::DirectoryService::Model::UnshareTarget::WithId
UnshareTarget & WithId(Aws::String &&value)
Definition: UnshareTarget.h:75
Aws::DirectoryService::Model::UnshareTarget::WithId
UnshareTarget & WithId(const char *value)
Definition: UnshareTarget.h:80
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::DirectoryService::Model::UnshareTarget::IdHasBeenSet
bool IdHasBeenSet() const
Definition: UnshareTarget.h:50
TargetType.h
Aws::DirectoryService::Model::UnshareTarget::SetType
void SetType(TargetType &&value)
Definition: UnshareTarget.h:101
Aws::DirectoryService::Model::UnshareTarget::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: UnshareTarget.h:91
Aws::DirectoryService::Model::UnshareTarget::operator=
UnshareTarget & operator=(Aws::Utils::Json::JsonView jsonValue)