AWS SDK for C++  1.9.130
AWS SDK for C++
GetWorkloadRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace WellArchitected
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 "GetWorkload"; }
34 
35  Aws::String SerializePayload() const override;
36 
37 
38 
39  inline const Aws::String& GetWorkloadId() const{ return m_workloadId; }
40 
41 
42  inline bool WorkloadIdHasBeenSet() const { return m_workloadIdHasBeenSet; }
43 
44 
45  inline void SetWorkloadId(const Aws::String& value) { m_workloadIdHasBeenSet = true; m_workloadId = value; }
46 
47 
48  inline void SetWorkloadId(Aws::String&& value) { m_workloadIdHasBeenSet = true; m_workloadId = std::move(value); }
49 
50 
51  inline void SetWorkloadId(const char* value) { m_workloadIdHasBeenSet = true; m_workloadId.assign(value); }
52 
53 
54  inline GetWorkloadRequest& WithWorkloadId(const Aws::String& value) { SetWorkloadId(value); return *this;}
55 
56 
57  inline GetWorkloadRequest& WithWorkloadId(Aws::String&& value) { SetWorkloadId(std::move(value)); return *this;}
58 
59 
60  inline GetWorkloadRequest& WithWorkloadId(const char* value) { SetWorkloadId(value); return *this;}
61 
62  private:
63 
64  Aws::String m_workloadId;
65  bool m_workloadIdHasBeenSet;
66  };
67 
68 } // namespace Model
69 } // namespace WellArchitected
70 } // namespace Aws
WellArchitectedRequest.h
Aws::WellArchitected::Model::GetWorkloadRequest::WithWorkloadId
GetWorkloadRequest & WithWorkloadId(Aws::String &&value)
Definition: GetWorkloadRequest.h:57
Aws::WellArchitected::Model::GetWorkloadRequest::SetWorkloadId
void SetWorkloadId(const Aws::String &value)
Definition: GetWorkloadRequest.h:45
Aws::WellArchitected::Model::GetWorkloadRequest::SerializePayload
Aws::String SerializePayload() const override
WellArchitected_EXPORTS.h
Aws::WellArchitected::Model::GetWorkloadRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetWorkloadRequest.h:33
Aws::WellArchitected::Model::GetWorkloadRequest::GetWorkloadId
const Aws::String & GetWorkloadId() const
Definition: GetWorkloadRequest.h:39
Aws::WellArchitected::WellArchitectedRequest
Definition: WellArchitectedRequest.h:17
Aws::WellArchitected::Model::GetWorkloadRequest::SetWorkloadId
void SetWorkloadId(Aws::String &&value)
Definition: GetWorkloadRequest.h:48
Aws::WellArchitected::Model::GetWorkloadRequest::WithWorkloadId
GetWorkloadRequest & WithWorkloadId(const char *value)
Definition: GetWorkloadRequest.h:60
Aws::WellArchitected::Model::GetWorkloadRequest::WithWorkloadId
GetWorkloadRequest & WithWorkloadId(const Aws::String &value)
Definition: GetWorkloadRequest.h:54
Aws::WellArchitected::Model::GetWorkloadRequest::SetWorkloadId
void SetWorkloadId(const char *value)
Definition: GetWorkloadRequest.h:51
Aws::WellArchitected::Model::GetWorkloadRequest::GetWorkloadRequest
GetWorkloadRequest()
AWSString.h
AWS_WELLARCHITECTED_API
#define AWS_WELLARCHITECTED_API
Definition: WellArchitected_EXPORTS.h:28
Aws::WellArchitected::Model::GetWorkloadRequest
Definition: GetWorkloadRequest.h:25
Aws::WellArchitected::Model::GetWorkloadRequest::WorkloadIdHasBeenSet
bool WorkloadIdHasBeenSet() const
Definition: GetWorkloadRequest.h:42
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97