AWS SDK for C++  1.9.123
AWS SDK for C++
GetTagsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace ResourceGroups
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 "GetTags"; }
31 
32  Aws::String SerializePayload() const override;
33 
34 
38  inline const Aws::String& GetArn() const{ return m_arn; }
39 
43  inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
44 
48  inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
49 
53  inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
54 
58  inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
59 
63  inline GetTagsRequest& WithArn(const Aws::String& value) { SetArn(value); return *this;}
64 
68  inline GetTagsRequest& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
69 
73  inline GetTagsRequest& WithArn(const char* value) { SetArn(value); return *this;}
74 
75  private:
76 
77  Aws::String m_arn;
78  bool m_arnHasBeenSet;
79  };
80 
81 } // namespace Model
82 } // namespace ResourceGroups
83 } // namespace Aws
Aws::ResourceGroups::Model::GetTagsRequest::SetArn
void SetArn(Aws::String &&value)
Definition: GetTagsRequest.h:53
Aws::ResourceGroups::Model::GetTagsRequest::SetArn
void SetArn(const char *value)
Definition: GetTagsRequest.h:58
Aws::ResourceGroups::Model::GetTagsRequest::WithArn
GetTagsRequest & WithArn(Aws::String &&value)
Definition: GetTagsRequest.h:68
Aws::ResourceGroups::Model::GetTagsRequest::GetArn
const Aws::String & GetArn() const
Definition: GetTagsRequest.h:38
Aws::ResourceGroups::Model::GetTagsRequest::WithArn
GetTagsRequest & WithArn(const Aws::String &value)
Definition: GetTagsRequest.h:63
AWS_RESOURCEGROUPS_API
#define AWS_RESOURCEGROUPS_API
Definition: ResourceGroups_EXPORTS.h:28
Aws::ResourceGroups::Model::GetTagsRequest
Definition: GetTagsRequest.h:22
Aws::ResourceGroups::ResourceGroupsRequest
Definition: ResourceGroupsRequest.h:17
Aws::ResourceGroups::Model::GetTagsRequest::SetArn
void SetArn(const Aws::String &value)
Definition: GetTagsRequest.h:48
AWSString.h
ResourceGroupsRequest.h
Aws::ResourceGroups::Model::GetTagsRequest::GetTagsRequest
GetTagsRequest()
Aws::ResourceGroups::Model::GetTagsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetTagsRequest.h:30
Aws::ResourceGroups::Model::GetTagsRequest::WithArn
GetTagsRequest & WithArn(const char *value)
Definition: GetTagsRequest.h:73
Aws
Definition: AccessManagementClient.h:15
ResourceGroups_EXPORTS.h
Aws::ResourceGroups::Model::GetTagsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ResourceGroups::Model::GetTagsRequest::ArnHasBeenSet
bool ArnHasBeenSet() const
Definition: GetTagsRequest.h:43