AWS SDK for C++  1.9.158
AWS SDK for C++
DeleteLocationRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace DataSync
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 "DeleteLocation"; }
34 
35  Aws::String SerializePayload() const override;
36 
38 
39 
43  inline const Aws::String& GetLocationArn() const{ return m_locationArn; }
44 
48  inline bool LocationArnHasBeenSet() const { return m_locationArnHasBeenSet; }
49 
53  inline void SetLocationArn(const Aws::String& value) { m_locationArnHasBeenSet = true; m_locationArn = value; }
54 
58  inline void SetLocationArn(Aws::String&& value) { m_locationArnHasBeenSet = true; m_locationArn = std::move(value); }
59 
63  inline void SetLocationArn(const char* value) { m_locationArnHasBeenSet = true; m_locationArn.assign(value); }
64 
68  inline DeleteLocationRequest& WithLocationArn(const Aws::String& value) { SetLocationArn(value); return *this;}
69 
73  inline DeleteLocationRequest& WithLocationArn(Aws::String&& value) { SetLocationArn(std::move(value)); return *this;}
74 
78  inline DeleteLocationRequest& WithLocationArn(const char* value) { SetLocationArn(value); return *this;}
79 
80  private:
81 
82  Aws::String m_locationArn;
83  bool m_locationArnHasBeenSet;
84  };
85 
86 } // namespace Model
87 } // namespace DataSync
88 } // namespace Aws
Aws::DataSync::Model::DeleteLocationRequest::WithLocationArn
DeleteLocationRequest & WithLocationArn(const char *value)
Definition: DeleteLocationRequest.h:78
AWS_DATASYNC_API
#define AWS_DATASYNC_API
Definition: DataSync_EXPORTS.h:28
Aws::DataSync::Model::DeleteLocationRequest
Definition: DeleteLocationRequest.h:25
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::DataSync::Model::DeleteLocationRequest::WithLocationArn
DeleteLocationRequest & WithLocationArn(const Aws::String &value)
Definition: DeleteLocationRequest.h:68
Aws::DataSync::Model::DeleteLocationRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
DataSyncRequest.h
Aws::DataSync::Model::DeleteLocationRequest::LocationArnHasBeenSet
bool LocationArnHasBeenSet() const
Definition: DeleteLocationRequest.h:48
Aws::DataSync::Model::DeleteLocationRequest::SetLocationArn
void SetLocationArn(const char *value)
Definition: DeleteLocationRequest.h:63
Aws::DataSync::Model::DeleteLocationRequest::SetLocationArn
void SetLocationArn(Aws::String &&value)
Definition: DeleteLocationRequest.h:58
Aws::DataSync::Model::DeleteLocationRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DeleteLocationRequest.h:33
Aws::DataSync::Model::DeleteLocationRequest::GetLocationArn
const Aws::String & GetLocationArn() const
Definition: DeleteLocationRequest.h:43
Aws::DataSync::Model::DeleteLocationRequest::SetLocationArn
void SetLocationArn(const Aws::String &value)
Definition: DeleteLocationRequest.h:53
AWSString.h
DataSync_EXPORTS.h
Aws::DataSync::Model::DeleteLocationRequest::DeleteLocationRequest
DeleteLocationRequest()
Aws::DataSync::DataSyncRequest
Definition: DataSyncRequest.h:17
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::DataSync::Model::DeleteLocationRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::DataSync::Model::DeleteLocationRequest::WithLocationArn
DeleteLocationRequest & WithLocationArn(Aws::String &&value)
Definition: DeleteLocationRequest.h:73