AWS SDK for C++  1.8.154
AWS SDK for C++
UpdateTrustRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace DirectoryService
16 {
17 namespace Model
18 {
19 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "UpdateTrust"; }
32 
33  Aws::String SerializePayload() const override;
34 
36 
37 
41  inline const Aws::String& GetTrustId() const{ return m_trustId; }
42 
46  inline bool TrustIdHasBeenSet() const { return m_trustIdHasBeenSet; }
47 
51  inline void SetTrustId(const Aws::String& value) { m_trustIdHasBeenSet = true; m_trustId = value; }
52 
56  inline void SetTrustId(Aws::String&& value) { m_trustIdHasBeenSet = true; m_trustId = std::move(value); }
57 
61  inline void SetTrustId(const char* value) { m_trustIdHasBeenSet = true; m_trustId.assign(value); }
62 
66  inline UpdateTrustRequest& WithTrustId(const Aws::String& value) { SetTrustId(value); return *this;}
67 
71  inline UpdateTrustRequest& WithTrustId(Aws::String&& value) { SetTrustId(std::move(value)); return *this;}
72 
76  inline UpdateTrustRequest& WithTrustId(const char* value) { SetTrustId(value); return *this;}
77 
78 
82  inline const SelectiveAuth& GetSelectiveAuth() const{ return m_selectiveAuth; }
83 
87  inline bool SelectiveAuthHasBeenSet() const { return m_selectiveAuthHasBeenSet; }
88 
92  inline void SetSelectiveAuth(const SelectiveAuth& value) { m_selectiveAuthHasBeenSet = true; m_selectiveAuth = value; }
93 
97  inline void SetSelectiveAuth(SelectiveAuth&& value) { m_selectiveAuthHasBeenSet = true; m_selectiveAuth = std::move(value); }
98 
102  inline UpdateTrustRequest& WithSelectiveAuth(const SelectiveAuth& value) { SetSelectiveAuth(value); return *this;}
103 
107  inline UpdateTrustRequest& WithSelectiveAuth(SelectiveAuth&& value) { SetSelectiveAuth(std::move(value)); return *this;}
108 
109  private:
110 
111  Aws::String m_trustId;
112  bool m_trustIdHasBeenSet;
113 
114  SelectiveAuth m_selectiveAuth;
115  bool m_selectiveAuthHasBeenSet;
116  };
117 
118 } // namespace Model
119 } // namespace DirectoryService
120 } // namespace Aws
Aws::DirectoryService::Model::UpdateTrustRequest::WithTrustId
UpdateTrustRequest & WithTrustId(const char *value)
Definition: UpdateTrustRequest.h:76
AWS_DIRECTORYSERVICE_API
#define AWS_DIRECTORYSERVICE_API
Definition: DirectoryService_EXPORTS.h:28
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::DirectoryService::Model::UpdateTrustRequest::WithSelectiveAuth
UpdateTrustRequest & WithSelectiveAuth(SelectiveAuth &&value)
Definition: UpdateTrustRequest.h:107
Aws::DirectoryService::Model::UpdateTrustRequest::GetSelectiveAuth
const SelectiveAuth & GetSelectiveAuth() const
Definition: UpdateTrustRequest.h:82
Aws::DirectoryService::Model::UpdateTrustRequest::SetTrustId
void SetTrustId(const char *value)
Definition: UpdateTrustRequest.h:61
DirectoryService_EXPORTS.h
Aws::DirectoryService::DirectoryServiceRequest
Definition: DirectoryServiceRequest.h:17
Aws::DirectoryService::Model::UpdateTrustRequest::GetTrustId
const Aws::String & GetTrustId() const
Definition: UpdateTrustRequest.h:41
Aws::DirectoryService::Model::UpdateTrustRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::DirectoryService::Model::UpdateTrustRequest::SetTrustId
void SetTrustId(Aws::String &&value)
Definition: UpdateTrustRequest.h:56
Aws::DirectoryService::Model::UpdateTrustRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateTrustRequest.h:31
AWSString.h
Aws::DirectoryService::Model::UpdateTrustRequest::SetSelectiveAuth
void SetSelectiveAuth(const SelectiveAuth &value)
Definition: UpdateTrustRequest.h:92
SelectiveAuth.h
Aws::DirectoryService::Model::SelectiveAuth
SelectiveAuth
Definition: SelectiveAuth.h:17
Aws::DirectoryService::Model::UpdateTrustRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::DirectoryService::Model::UpdateTrustRequest::WithTrustId
UpdateTrustRequest & WithTrustId(const Aws::String &value)
Definition: UpdateTrustRequest.h:66
Aws::DirectoryService::Model::UpdateTrustRequest::WithSelectiveAuth
UpdateTrustRequest & WithSelectiveAuth(const SelectiveAuth &value)
Definition: UpdateTrustRequest.h:102
Aws::DirectoryService::Model::UpdateTrustRequest::SetTrustId
void SetTrustId(const Aws::String &value)
Definition: UpdateTrustRequest.h:51
Aws
Definition: AccessManagementClient.h:15
Aws::DirectoryService::Model::UpdateTrustRequest::TrustIdHasBeenSet
bool TrustIdHasBeenSet() const
Definition: UpdateTrustRequest.h:46
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::DirectoryService::Model::UpdateTrustRequest::UpdateTrustRequest
UpdateTrustRequest()
Aws::DirectoryService::Model::UpdateTrustRequest
Definition: UpdateTrustRequest.h:23
Aws::DirectoryService::Model::UpdateTrustRequest::SelectiveAuthHasBeenSet
bool SelectiveAuthHasBeenSet() const
Definition: UpdateTrustRequest.h:87
DirectoryServiceRequest.h
Aws::DirectoryService::Model::UpdateTrustRequest::WithTrustId
UpdateTrustRequest & WithTrustId(Aws::String &&value)
Definition: UpdateTrustRequest.h:71
Aws::DirectoryService::Model::UpdateTrustRequest::SetSelectiveAuth
void SetSelectiveAuth(SelectiveAuth &&value)
Definition: UpdateTrustRequest.h:97