AWS SDK for C++  1.9.131
AWS SDK for C++
CreateAliasResult.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 template<typename RESULT_TYPE>
14 class AmazonWebServiceResult;
15 
16 namespace Utils
17 {
18 namespace Json
19 {
20  class JsonValue;
21 } // namespace Json
22 } // namespace Utils
23 namespace DirectoryService
24 {
25 namespace Model
26 {
34  {
35  public:
39 
40 
44  inline const Aws::String& GetDirectoryId() const{ return m_directoryId; }
45 
49  inline void SetDirectoryId(const Aws::String& value) { m_directoryId = value; }
50 
54  inline void SetDirectoryId(Aws::String&& value) { m_directoryId = std::move(value); }
55 
59  inline void SetDirectoryId(const char* value) { m_directoryId.assign(value); }
60 
64  inline CreateAliasResult& WithDirectoryId(const Aws::String& value) { SetDirectoryId(value); return *this;}
65 
69  inline CreateAliasResult& WithDirectoryId(Aws::String&& value) { SetDirectoryId(std::move(value)); return *this;}
70 
74  inline CreateAliasResult& WithDirectoryId(const char* value) { SetDirectoryId(value); return *this;}
75 
76 
80  inline const Aws::String& GetAlias() const{ return m_alias; }
81 
85  inline void SetAlias(const Aws::String& value) { m_alias = value; }
86 
90  inline void SetAlias(Aws::String&& value) { m_alias = std::move(value); }
91 
95  inline void SetAlias(const char* value) { m_alias.assign(value); }
96 
100  inline CreateAliasResult& WithAlias(const Aws::String& value) { SetAlias(value); return *this;}
101 
105  inline CreateAliasResult& WithAlias(Aws::String&& value) { SetAlias(std::move(value)); return *this;}
106 
110  inline CreateAliasResult& WithAlias(const char* value) { SetAlias(value); return *this;}
111 
112  private:
113 
114  Aws::String m_directoryId;
115 
116  Aws::String m_alias;
117  };
118 
119 } // namespace Model
120 } // namespace DirectoryService
121 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::DirectoryService::Model::CreateAliasResult::WithDirectoryId
CreateAliasResult & WithDirectoryId(Aws::String &&value)
Definition: CreateAliasResult.h:69
AWS_DIRECTORYSERVICE_API
#define AWS_DIRECTORYSERVICE_API
Definition: DirectoryService_EXPORTS.h:28
Aws::DirectoryService::Model::CreateAliasResult::SetAlias
void SetAlias(Aws::String &&value)
Definition: CreateAliasResult.h:90
Aws::DirectoryService::Model::CreateAliasResult::SetDirectoryId
void SetDirectoryId(const Aws::String &value)
Definition: CreateAliasResult.h:49
Aws::DirectoryService::Model::CreateAliasResult
Definition: CreateAliasResult.h:34
Aws::DirectoryService::Model::CreateAliasResult::WithAlias
CreateAliasResult & WithAlias(Aws::String &&value)
Definition: CreateAliasResult.h:105
DirectoryService_EXPORTS.h
Aws::DirectoryService::Model::CreateAliasResult::SetAlias
void SetAlias(const Aws::String &value)
Definition: CreateAliasResult.h:85
Aws::DirectoryService::Model::CreateAliasResult::GetAlias
const Aws::String & GetAlias() const
Definition: CreateAliasResult.h:80
Aws::DirectoryService::Model::CreateAliasResult::WithAlias
CreateAliasResult & WithAlias(const char *value)
Definition: CreateAliasResult.h:110
Aws::DirectoryService::Model::CreateAliasResult::GetDirectoryId
const Aws::String & GetDirectoryId() const
Definition: CreateAliasResult.h:44
Aws::DirectoryService::Model::CreateAliasResult::operator=
CreateAliasResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::DirectoryService::Model::CreateAliasResult::SetDirectoryId
void SetDirectoryId(const char *value)
Definition: CreateAliasResult.h:59
Aws::DirectoryService::Model::CreateAliasResult::WithAlias
CreateAliasResult & WithAlias(const Aws::String &value)
Definition: CreateAliasResult.h:100
AWSString.h
Aws::DirectoryService::Model::CreateAliasResult::SetDirectoryId
void SetDirectoryId(Aws::String &&value)
Definition: CreateAliasResult.h:54
Aws::DirectoryService::Model::CreateAliasResult::CreateAliasResult
CreateAliasResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::DirectoryService::Model::CreateAliasResult::SetAlias
void SetAlias(const char *value)
Definition: CreateAliasResult.h:95
Aws::DirectoryService::Model::CreateAliasResult::WithDirectoryId
CreateAliasResult & WithDirectoryId(const char *value)
Definition: CreateAliasResult.h:74
Aws::DirectoryService::Model::CreateAliasResult::WithDirectoryId
CreateAliasResult & WithDirectoryId(const Aws::String &value)
Definition: CreateAliasResult.h:64
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::DirectoryService::Model::CreateAliasResult::CreateAliasResult
CreateAliasResult()