AWS SDK for C++  1.9.158
AWS SDK for C++
AssociateDRTRoleRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Shield
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 "AssociateDRTRole"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
46  inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
47 
57  inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
58 
68  inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
69 
79  inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
80 
90  inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
91 
101  inline AssociateDRTRoleRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
102 
112  inline AssociateDRTRoleRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
113 
123  inline AssociateDRTRoleRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
124 
125  private:
126 
127  Aws::String m_roleArn;
128  bool m_roleArnHasBeenSet;
129  };
130 
131 } // namespace Model
132 } // namespace Shield
133 } // namespace Aws
Aws::Shield::Model::AssociateDRTRoleRequest::WithRoleArn
AssociateDRTRoleRequest & WithRoleArn(const char *value)
Definition: AssociateDRTRoleRequest.h:123
ShieldRequest.h
AWS_SHIELD_API
#define AWS_SHIELD_API
Definition: Shield_EXPORTS.h:28
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Shield::Model::AssociateDRTRoleRequest::SetRoleArn
void SetRoleArn(const char *value)
Definition: AssociateDRTRoleRequest.h:90
Aws::Shield::Model::AssociateDRTRoleRequest::SetRoleArn
void SetRoleArn(const Aws::String &value)
Definition: AssociateDRTRoleRequest.h:68
Aws::Shield::Model::AssociateDRTRoleRequest::GetRoleArn
const Aws::String & GetRoleArn() const
Definition: AssociateDRTRoleRequest.h:46
Aws::Shield::Model::AssociateDRTRoleRequest::SetRoleArn
void SetRoleArn(Aws::String &&value)
Definition: AssociateDRTRoleRequest.h:79
Aws::Shield::Model::AssociateDRTRoleRequest::WithRoleArn
AssociateDRTRoleRequest & WithRoleArn(Aws::String &&value)
Definition: AssociateDRTRoleRequest.h:112
Aws::Shield::ShieldRequest
Definition: ShieldRequest.h:17
Shield_EXPORTS.h
Aws::Shield::Model::AssociateDRTRoleRequest
Definition: AssociateDRTRoleRequest.h:22
Aws::Shield::Model::AssociateDRTRoleRequest::WithRoleArn
AssociateDRTRoleRequest & WithRoleArn(const Aws::String &value)
Definition: AssociateDRTRoleRequest.h:101
AWSString.h
Aws::Shield::Model::AssociateDRTRoleRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: AssociateDRTRoleRequest.h:30
Aws::Shield::Model::AssociateDRTRoleRequest::SerializePayload
Aws::String SerializePayload() const override
Aws
Definition: AccessManagementClient.h:15
Aws::Shield::Model::AssociateDRTRoleRequest::RoleArnHasBeenSet
bool RoleArnHasBeenSet() const
Definition: AssociateDRTRoleRequest.h:57
Aws::Shield::Model::AssociateDRTRoleRequest::AssociateDRTRoleRequest
AssociateDRTRoleRequest()
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Shield::Model::AssociateDRTRoleRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override