AWS SDK for C++  1.9.40
AWS SDK for C++
DeleteChapCredentialsRequest.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 
28  {
29  public:
31 
32  // Service request name is the Operation name which will send this request out,
33  // each operation should has unique request name, so that we can get operation's name from this request.
34  // Note: this is not true for response, multiple operations may have the same response name,
35  // so we can not get operation's name from response.
36  inline virtual const char* GetServiceRequestName() const override { return "DeleteChapCredentials"; }
37 
38  Aws::String SerializePayload() const override;
39 
41 
42 
48  inline const Aws::String& GetTargetARN() const{ return m_targetARN; }
49 
55  inline bool TargetARNHasBeenSet() const { return m_targetARNHasBeenSet; }
56 
62  inline void SetTargetARN(const Aws::String& value) { m_targetARNHasBeenSet = true; m_targetARN = value; }
63 
69  inline void SetTargetARN(Aws::String&& value) { m_targetARNHasBeenSet = true; m_targetARN = std::move(value); }
70 
76  inline void SetTargetARN(const char* value) { m_targetARNHasBeenSet = true; m_targetARN.assign(value); }
77 
83  inline DeleteChapCredentialsRequest& WithTargetARN(const Aws::String& value) { SetTargetARN(value); return *this;}
84 
90  inline DeleteChapCredentialsRequest& WithTargetARN(Aws::String&& value) { SetTargetARN(std::move(value)); return *this;}
91 
97  inline DeleteChapCredentialsRequest& WithTargetARN(const char* value) { SetTargetARN(value); return *this;}
98 
99 
103  inline const Aws::String& GetInitiatorName() const{ return m_initiatorName; }
104 
108  inline bool InitiatorNameHasBeenSet() const { return m_initiatorNameHasBeenSet; }
109 
113  inline void SetInitiatorName(const Aws::String& value) { m_initiatorNameHasBeenSet = true; m_initiatorName = value; }
114 
118  inline void SetInitiatorName(Aws::String&& value) { m_initiatorNameHasBeenSet = true; m_initiatorName = std::move(value); }
119 
123  inline void SetInitiatorName(const char* value) { m_initiatorNameHasBeenSet = true; m_initiatorName.assign(value); }
124 
128  inline DeleteChapCredentialsRequest& WithInitiatorName(const Aws::String& value) { SetInitiatorName(value); return *this;}
129 
133  inline DeleteChapCredentialsRequest& WithInitiatorName(Aws::String&& value) { SetInitiatorName(std::move(value)); return *this;}
134 
138  inline DeleteChapCredentialsRequest& WithInitiatorName(const char* value) { SetInitiatorName(value); return *this;}
139 
140  private:
141 
142  Aws::String m_targetARN;
143  bool m_targetARNHasBeenSet;
144 
145  Aws::String m_initiatorName;
146  bool m_initiatorNameHasBeenSet;
147  };
148 
149 } // namespace Model
150 } // namespace StorageGateway
151 } // namespace Aws
Aws::StorageGateway::Model::DeleteChapCredentialsRequest::WithTargetARN
DeleteChapCredentialsRequest & WithTargetARN(const char *value)
Definition: DeleteChapCredentialsRequest.h:97
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::StorageGateway::Model::DeleteChapCredentialsRequest::WithInitiatorName
DeleteChapCredentialsRequest & WithInitiatorName(const Aws::String &value)
Definition: DeleteChapCredentialsRequest.h:128
Aws::StorageGateway::Model::DeleteChapCredentialsRequest::SetTargetARN
void SetTargetARN(const Aws::String &value)
Definition: DeleteChapCredentialsRequest.h:62
Aws::StorageGateway::Model::DeleteChapCredentialsRequest::InitiatorNameHasBeenSet
bool InitiatorNameHasBeenSet() const
Definition: DeleteChapCredentialsRequest.h:108
Aws::StorageGateway::Model::DeleteChapCredentialsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DeleteChapCredentialsRequest.h:36
Aws::StorageGateway::Model::DeleteChapCredentialsRequest::SetTargetARN
void SetTargetARN(Aws::String &&value)
Definition: DeleteChapCredentialsRequest.h:69
Aws::StorageGateway::StorageGatewayRequest
Definition: StorageGatewayRequest.h:17
Aws::StorageGateway::Model::DeleteChapCredentialsRequest::GetTargetARN
const Aws::String & GetTargetARN() const
Definition: DeleteChapCredentialsRequest.h:48
Aws::StorageGateway::Model::DeleteChapCredentialsRequest::SetInitiatorName
void SetInitiatorName(const char *value)
Definition: DeleteChapCredentialsRequest.h:123
Aws::StorageGateway::Model::DeleteChapCredentialsRequest::WithInitiatorName
DeleteChapCredentialsRequest & WithInitiatorName(Aws::String &&value)
Definition: DeleteChapCredentialsRequest.h:133
AWSString.h
AWS_STORAGEGATEWAY_API
#define AWS_STORAGEGATEWAY_API
Definition: StorageGateway_EXPORTS.h:28
Aws::StorageGateway::Model::DeleteChapCredentialsRequest
Definition: DeleteChapCredentialsRequest.h:28
Aws::StorageGateway::Model::DeleteChapCredentialsRequest::WithTargetARN
DeleteChapCredentialsRequest & WithTargetARN(Aws::String &&value)
Definition: DeleteChapCredentialsRequest.h:90
Aws::StorageGateway::Model::DeleteChapCredentialsRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::StorageGateway::Model::DeleteChapCredentialsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::StorageGateway::Model::DeleteChapCredentialsRequest::SetInitiatorName
void SetInitiatorName(Aws::String &&value)
Definition: DeleteChapCredentialsRequest.h:118
StorageGatewayRequest.h
Aws::StorageGateway::Model::DeleteChapCredentialsRequest::DeleteChapCredentialsRequest
DeleteChapCredentialsRequest()
Aws::StorageGateway::Model::DeleteChapCredentialsRequest::GetInitiatorName
const Aws::String & GetInitiatorName() const
Definition: DeleteChapCredentialsRequest.h:103
Aws
Definition: AccessManagementClient.h:15
StorageGateway_EXPORTS.h
Aws::StorageGateway::Model::DeleteChapCredentialsRequest::WithInitiatorName
DeleteChapCredentialsRequest & WithInitiatorName(const char *value)
Definition: DeleteChapCredentialsRequest.h:138
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::StorageGateway::Model::DeleteChapCredentialsRequest::WithTargetARN
DeleteChapCredentialsRequest & WithTargetARN(const Aws::String &value)
Definition: DeleteChapCredentialsRequest.h:83
Aws::StorageGateway::Model::DeleteChapCredentialsRequest::SetInitiatorName
void SetInitiatorName(const Aws::String &value)
Definition: DeleteChapCredentialsRequest.h:113
Aws::StorageGateway::Model::DeleteChapCredentialsRequest::TargetARNHasBeenSet
bool TargetARNHasBeenSet() const
Definition: DeleteChapCredentialsRequest.h:55
Aws::StorageGateway::Model::DeleteChapCredentialsRequest::SetTargetARN
void SetTargetARN(const char *value)
Definition: DeleteChapCredentialsRequest.h:76