AWS SDK for C++  1.9.124
AWS SDK for C++
GetEnvironmentRequest.h
Go to the documentation of this file.
1 
6 #pragma once
8 #include <aws/mwaa/MWAARequest.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace MWAA
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "GetEnvironment"; }
31 
32  Aws::String SerializePayload() const override;
33 
34 
39  inline const Aws::String& GetName() const{ return m_name; }
40 
45  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
46 
51  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
52 
57  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
58 
63  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
64 
69  inline GetEnvironmentRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
70 
75  inline GetEnvironmentRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
76 
81  inline GetEnvironmentRequest& WithName(const char* value) { SetName(value); return *this;}
82 
83  private:
84 
85  Aws::String m_name;
86  bool m_nameHasBeenSet;
87  };
88 
89 } // namespace Model
90 } // namespace MWAA
91 } // namespace Aws
Aws::MWAA::Model::GetEnvironmentRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::MWAA::Model::GetEnvironmentRequest::SetName
void SetName(Aws::String &&value)
Definition: GetEnvironmentRequest.h:57
Aws::MWAA::Model::GetEnvironmentRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: GetEnvironmentRequest.h:45
MWAARequest.h
Aws::MWAA::Model::GetEnvironmentRequest::SetName
void SetName(const char *value)
Definition: GetEnvironmentRequest.h:63
Aws::MWAA::Model::GetEnvironmentRequest::GetEnvironmentRequest
GetEnvironmentRequest()
Aws::MWAA::Model::GetEnvironmentRequest::SetName
void SetName(const Aws::String &value)
Definition: GetEnvironmentRequest.h:51
AWSString.h
Aws::MWAA::Model::GetEnvironmentRequest::WithName
GetEnvironmentRequest & WithName(const char *value)
Definition: GetEnvironmentRequest.h:81
Aws::MWAA::Model::GetEnvironmentRequest::GetName
const Aws::String & GetName() const
Definition: GetEnvironmentRequest.h:39
Aws::MWAA::Model::GetEnvironmentRequest::WithName
GetEnvironmentRequest & WithName(Aws::String &&value)
Definition: GetEnvironmentRequest.h:75
AWS_MWAA_API
#define AWS_MWAA_API
Definition: MWAA_EXPORTS.h:28
Aws
Definition: AccessManagementClient.h:15
Aws::MWAA::Model::GetEnvironmentRequest
Definition: GetEnvironmentRequest.h:22
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::MWAA::Model::GetEnvironmentRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetEnvironmentRequest.h:30
Aws::MWAA::MWAARequest
Definition: MWAARequest.h:17
Aws::MWAA::Model::GetEnvironmentRequest::WithName
GetEnvironmentRequest & WithName(const Aws::String &value)
Definition: GetEnvironmentRequest.h:69
MWAA_EXPORTS.h