AWS SDK for C++  1.9.109
AWS SDK for C++
SetSMBGuestPasswordRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace StorageGateway
15 {
16 namespace Model
17 {
18 
25  {
26  public:
28 
29  // Service request name is the Operation name which will send this request out,
30  // each operation should has unique request name, so that we can get operation's name from this request.
31  // Note: this is not true for response, multiple operations may have the same response name,
32  // so we can not get operation's name from response.
33  inline virtual const char* GetServiceRequestName() const override { return "SetSMBGuestPassword"; }
34 
35  Aws::String SerializePayload() const override;
36 
38 
39 
44  inline const Aws::String& GetGatewayARN() const{ return m_gatewayARN; }
45 
50  inline bool GatewayARNHasBeenSet() const { return m_gatewayARNHasBeenSet; }
51 
56  inline void SetGatewayARN(const Aws::String& value) { m_gatewayARNHasBeenSet = true; m_gatewayARN = value; }
57 
62  inline void SetGatewayARN(Aws::String&& value) { m_gatewayARNHasBeenSet = true; m_gatewayARN = std::move(value); }
63 
68  inline void SetGatewayARN(const char* value) { m_gatewayARNHasBeenSet = true; m_gatewayARN.assign(value); }
69 
74  inline SetSMBGuestPasswordRequest& WithGatewayARN(const Aws::String& value) { SetGatewayARN(value); return *this;}
75 
80  inline SetSMBGuestPasswordRequest& WithGatewayARN(Aws::String&& value) { SetGatewayARN(std::move(value)); return *this;}
81 
86  inline SetSMBGuestPasswordRequest& WithGatewayARN(const char* value) { SetGatewayARN(value); return *this;}
87 
88 
92  inline const Aws::String& GetPassword() const{ return m_password; }
93 
97  inline bool PasswordHasBeenSet() const { return m_passwordHasBeenSet; }
98 
102  inline void SetPassword(const Aws::String& value) { m_passwordHasBeenSet = true; m_password = value; }
103 
107  inline void SetPassword(Aws::String&& value) { m_passwordHasBeenSet = true; m_password = std::move(value); }
108 
112  inline void SetPassword(const char* value) { m_passwordHasBeenSet = true; m_password.assign(value); }
113 
117  inline SetSMBGuestPasswordRequest& WithPassword(const Aws::String& value) { SetPassword(value); return *this;}
118 
122  inline SetSMBGuestPasswordRequest& WithPassword(Aws::String&& value) { SetPassword(std::move(value)); return *this;}
123 
127  inline SetSMBGuestPasswordRequest& WithPassword(const char* value) { SetPassword(value); return *this;}
128 
129  private:
130 
131  Aws::String m_gatewayARN;
132  bool m_gatewayARNHasBeenSet;
133 
134  Aws::String m_password;
135  bool m_passwordHasBeenSet;
136  };
137 
138 } // namespace Model
139 } // namespace StorageGateway
140 } // namespace Aws
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::StorageGateway::Model::SetSMBGuestPasswordRequest::GetPassword
const Aws::String & GetPassword() const
Definition: SetSMBGuestPasswordRequest.h:92
Aws::StorageGateway::Model::SetSMBGuestPasswordRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: SetSMBGuestPasswordRequest.h:33
Aws::StorageGateway::Model::SetSMBGuestPasswordRequest::GetGatewayARN
const Aws::String & GetGatewayARN() const
Definition: SetSMBGuestPasswordRequest.h:44
Aws::StorageGateway::Model::SetSMBGuestPasswordRequest
Definition: SetSMBGuestPasswordRequest.h:25
Aws::StorageGateway::Model::SetSMBGuestPasswordRequest::SetPassword
void SetPassword(const char *value)
Definition: SetSMBGuestPasswordRequest.h:112
Aws::StorageGateway::StorageGatewayRequest
Definition: StorageGatewayRequest.h:17
Aws::StorageGateway::Model::SetSMBGuestPasswordRequest::WithGatewayARN
SetSMBGuestPasswordRequest & WithGatewayARN(Aws::String &&value)
Definition: SetSMBGuestPasswordRequest.h:80
Aws::StorageGateway::Model::SetSMBGuestPasswordRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::StorageGateway::Model::SetSMBGuestPasswordRequest::SetPassword
void SetPassword(Aws::String &&value)
Definition: SetSMBGuestPasswordRequest.h:107
Aws::StorageGateway::Model::SetSMBGuestPasswordRequest::WithGatewayARN
SetSMBGuestPasswordRequest & WithGatewayARN(const char *value)
Definition: SetSMBGuestPasswordRequest.h:86
Aws::StorageGateway::Model::SetSMBGuestPasswordRequest::WithGatewayARN
SetSMBGuestPasswordRequest & WithGatewayARN(const Aws::String &value)
Definition: SetSMBGuestPasswordRequest.h:74
AWSString.h
Aws::StorageGateway::Model::SetSMBGuestPasswordRequest::SerializePayload
Aws::String SerializePayload() const override
AWS_STORAGEGATEWAY_API
#define AWS_STORAGEGATEWAY_API
Definition: StorageGateway_EXPORTS.h:28
Aws::StorageGateway::Model::SetSMBGuestPasswordRequest::WithPassword
SetSMBGuestPasswordRequest & WithPassword(const Aws::String &value)
Definition: SetSMBGuestPasswordRequest.h:117
StorageGatewayRequest.h
Aws
Definition: AccessManagementClient.h:15
Aws::StorageGateway::Model::SetSMBGuestPasswordRequest::PasswordHasBeenSet
bool PasswordHasBeenSet() const
Definition: SetSMBGuestPasswordRequest.h:97
Aws::StorageGateway::Model::SetSMBGuestPasswordRequest::SetSMBGuestPasswordRequest
SetSMBGuestPasswordRequest()
Aws::StorageGateway::Model::SetSMBGuestPasswordRequest::GatewayARNHasBeenSet
bool GatewayARNHasBeenSet() const
Definition: SetSMBGuestPasswordRequest.h:50
StorageGateway_EXPORTS.h
Aws::StorageGateway::Model::SetSMBGuestPasswordRequest::SetGatewayARN
void SetGatewayARN(const char *value)
Definition: SetSMBGuestPasswordRequest.h:68
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::StorageGateway::Model::SetSMBGuestPasswordRequest::SetGatewayARN
void SetGatewayARN(Aws::String &&value)
Definition: SetSMBGuestPasswordRequest.h:62
Aws::StorageGateway::Model::SetSMBGuestPasswordRequest::WithPassword
SetSMBGuestPasswordRequest & WithPassword(const char *value)
Definition: SetSMBGuestPasswordRequest.h:127
Aws::StorageGateway::Model::SetSMBGuestPasswordRequest::SetGatewayARN
void SetGatewayARN(const Aws::String &value)
Definition: SetSMBGuestPasswordRequest.h:56
Aws::StorageGateway::Model::SetSMBGuestPasswordRequest::SetPassword
void SetPassword(const Aws::String &value)
Definition: SetSMBGuestPasswordRequest.h:102
Aws::StorageGateway::Model::SetSMBGuestPasswordRequest::WithPassword
SetSMBGuestPasswordRequest & WithPassword(Aws::String &&value)
Definition: SetSMBGuestPasswordRequest.h:122