AWS SDK for C++  1.9.40
AWS SDK for C++
DeleteWorkloadRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 #include <aws/core/utils/UUID.h>
12 
13 namespace Aws
14 {
15 namespace Http
16 {
17  class URI;
18 } //namespace Http
19 namespace WellArchitected
20 {
21 namespace Model
22 {
23 
30  {
31  public:
33 
34  // Service request name is the Operation name which will send this request out,
35  // each operation should has unique request name, so that we can get operation's name from this request.
36  // Note: this is not true for response, multiple operations may have the same response name,
37  // so we can not get operation's name from response.
38  inline virtual const char* GetServiceRequestName() const override { return "DeleteWorkload"; }
39 
40  Aws::String SerializePayload() const override;
41 
42  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
43 
44 
45 
46  inline const Aws::String& GetWorkloadId() const{ return m_workloadId; }
47 
48 
49  inline bool WorkloadIdHasBeenSet() const { return m_workloadIdHasBeenSet; }
50 
51 
52  inline void SetWorkloadId(const Aws::String& value) { m_workloadIdHasBeenSet = true; m_workloadId = value; }
53 
54 
55  inline void SetWorkloadId(Aws::String&& value) { m_workloadIdHasBeenSet = true; m_workloadId = std::move(value); }
56 
57 
58  inline void SetWorkloadId(const char* value) { m_workloadIdHasBeenSet = true; m_workloadId.assign(value); }
59 
60 
61  inline DeleteWorkloadRequest& WithWorkloadId(const Aws::String& value) { SetWorkloadId(value); return *this;}
62 
63 
64  inline DeleteWorkloadRequest& WithWorkloadId(Aws::String&& value) { SetWorkloadId(std::move(value)); return *this;}
65 
66 
67  inline DeleteWorkloadRequest& WithWorkloadId(const char* value) { SetWorkloadId(value); return *this;}
68 
69 
70 
71  inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; }
72 
73 
74  inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
75 
76 
77  inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; }
78 
79 
80  inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); }
81 
82 
83  inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); }
84 
85 
86  inline DeleteWorkloadRequest& WithClientRequestToken(const Aws::String& value) { SetClientRequestToken(value); return *this;}
87 
88 
89  inline DeleteWorkloadRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;}
90 
91 
92  inline DeleteWorkloadRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;}
93 
94  private:
95 
96  Aws::String m_workloadId;
97  bool m_workloadIdHasBeenSet;
98 
99  Aws::String m_clientRequestToken;
100  bool m_clientRequestTokenHasBeenSet;
101  };
102 
103 } // namespace Model
104 } // namespace WellArchitected
105 } // namespace Aws
Aws::WellArchitected::Model::DeleteWorkloadRequest::SetClientRequestToken
void SetClientRequestToken(const char *value)
Definition: DeleteWorkloadRequest.h:83
WellArchitectedRequest.h
Aws::Http::URI
Definition: URI.h:32
Aws::WellArchitected::Model::DeleteWorkloadRequest
Definition: DeleteWorkloadRequest.h:30
WellArchitected_EXPORTS.h
Aws::WellArchitected::Model::DeleteWorkloadRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DeleteWorkloadRequest.h:38
Aws::WellArchitected::Model::DeleteWorkloadRequest::DeleteWorkloadRequest
DeleteWorkloadRequest()
Aws::WellArchitected::WellArchitectedRequest
Definition: WellArchitectedRequest.h:17
Aws::WellArchitected::Model::DeleteWorkloadRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::WellArchitected::Model::DeleteWorkloadRequest::SetWorkloadId
void SetWorkloadId(const Aws::String &value)
Definition: DeleteWorkloadRequest.h:52
Aws::WellArchitected::Model::DeleteWorkloadRequest::ClientRequestTokenHasBeenSet
bool ClientRequestTokenHasBeenSet() const
Definition: DeleteWorkloadRequest.h:74
Aws::WellArchitected::Model::DeleteWorkloadRequest::SetWorkloadId
void SetWorkloadId(const char *value)
Definition: DeleteWorkloadRequest.h:58
Aws::WellArchitected::Model::DeleteWorkloadRequest::GetClientRequestToken
const Aws::String & GetClientRequestToken() const
Definition: DeleteWorkloadRequest.h:71
Aws::WellArchitected::Model::DeleteWorkloadRequest::SetClientRequestToken
void SetClientRequestToken(const Aws::String &value)
Definition: DeleteWorkloadRequest.h:77
Aws::WellArchitected::Model::DeleteWorkloadRequest::WithClientRequestToken
DeleteWorkloadRequest & WithClientRequestToken(Aws::String &&value)
Definition: DeleteWorkloadRequest.h:89
Aws::WellArchitected::Model::DeleteWorkloadRequest::WithClientRequestToken
DeleteWorkloadRequest & WithClientRequestToken(const Aws::String &value)
Definition: DeleteWorkloadRequest.h:86
Aws::WellArchitected::Model::DeleteWorkloadRequest::WithWorkloadId
DeleteWorkloadRequest & WithWorkloadId(const Aws::String &value)
Definition: DeleteWorkloadRequest.h:61
AWSString.h
Aws::WellArchitected::Model::DeleteWorkloadRequest::SetClientRequestToken
void SetClientRequestToken(Aws::String &&value)
Definition: DeleteWorkloadRequest.h:80
Aws::WellArchitected::Model::DeleteWorkloadRequest::GetWorkloadId
const Aws::String & GetWorkloadId() const
Definition: DeleteWorkloadRequest.h:46
Aws::WellArchitected::Model::DeleteWorkloadRequest::WithClientRequestToken
DeleteWorkloadRequest & WithClientRequestToken(const char *value)
Definition: DeleteWorkloadRequest.h:92
AWS_WELLARCHITECTED_API
#define AWS_WELLARCHITECTED_API
Definition: WellArchitected_EXPORTS.h:28
Aws::WellArchitected::Model::DeleteWorkloadRequest::WorkloadIdHasBeenSet
bool WorkloadIdHasBeenSet() const
Definition: DeleteWorkloadRequest.h:49
Aws::WellArchitected::Model::DeleteWorkloadRequest::WithWorkloadId
DeleteWorkloadRequest & WithWorkloadId(const char *value)
Definition: DeleteWorkloadRequest.h:67
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::WellArchitected::Model::DeleteWorkloadRequest::WithWorkloadId
DeleteWorkloadRequest & WithWorkloadId(Aws::String &&value)
Definition: DeleteWorkloadRequest.h:64
Aws::WellArchitected::Model::DeleteWorkloadRequest::SetWorkloadId
void SetWorkloadId(Aws::String &&value)
Definition: DeleteWorkloadRequest.h:55
UUID.h
Aws::WellArchitected::Model::DeleteWorkloadRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override