AWS SDK for C++  1.9.108
AWS SDK for C++
DescribeTagsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace MachineLearning
16 {
17 namespace Model
18 {
19 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "DescribeTags"; }
32 
33  Aws::String SerializePayload() const override;
34 
36 
37 
41  inline const Aws::String& GetResourceId() const{ return m_resourceId; }
42 
46  inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
47 
51  inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
52 
56  inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
57 
61  inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
62 
66  inline DescribeTagsRequest& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
67 
71  inline DescribeTagsRequest& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
72 
76  inline DescribeTagsRequest& WithResourceId(const char* value) { SetResourceId(value); return *this;}
77 
78 
82  inline const TaggableResourceType& GetResourceType() const{ return m_resourceType; }
83 
87  inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
88 
92  inline void SetResourceType(const TaggableResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
93 
97  inline void SetResourceType(TaggableResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
98 
102  inline DescribeTagsRequest& WithResourceType(const TaggableResourceType& value) { SetResourceType(value); return *this;}
103 
107  inline DescribeTagsRequest& WithResourceType(TaggableResourceType&& value) { SetResourceType(std::move(value)); return *this;}
108 
109  private:
110 
111  Aws::String m_resourceId;
112  bool m_resourceIdHasBeenSet;
113 
114  TaggableResourceType m_resourceType;
115  bool m_resourceTypeHasBeenSet;
116  };
117 
118 } // namespace Model
119 } // namespace MachineLearning
120 } // namespace Aws
Aws::MachineLearning::Model::DescribeTagsRequest::SetResourceType
void SetResourceType(TaggableResourceType &&value)
Definition: DescribeTagsRequest.h:97
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::MachineLearning::Model::DescribeTagsRequest::SetResourceId
void SetResourceId(Aws::String &&value)
Definition: DescribeTagsRequest.h:56
MachineLearning_EXPORTS.h
Aws::MachineLearning::Model::DescribeTagsRequest::GetResourceId
const Aws::String & GetResourceId() const
Definition: DescribeTagsRequest.h:41
Aws::MachineLearning::Model::DescribeTagsRequest::ResourceIdHasBeenSet
bool ResourceIdHasBeenSet() const
Definition: DescribeTagsRequest.h:46
Aws::MachineLearning::Model::DescribeTagsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DescribeTagsRequest.h:31
Aws::MachineLearning::Model::DescribeTagsRequest::SetResourceId
void SetResourceId(const char *value)
Definition: DescribeTagsRequest.h:61
Aws::MachineLearning::Model::DescribeTagsRequest::SetResourceId
void SetResourceId(const Aws::String &value)
Definition: DescribeTagsRequest.h:51
Aws::MachineLearning::Model::DescribeTagsRequest::WithResourceType
DescribeTagsRequest & WithResourceType(const TaggableResourceType &value)
Definition: DescribeTagsRequest.h:102
Aws::MachineLearning::Model::DescribeTagsRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::MachineLearning::Model::DescribeTagsRequest::WithResourceId
DescribeTagsRequest & WithResourceId(const Aws::String &value)
Definition: DescribeTagsRequest.h:66
AWS_MACHINELEARNING_API
#define AWS_MACHINELEARNING_API
Definition: MachineLearning_EXPORTS.h:28
Aws::MachineLearning::Model::DescribeTagsRequest::SerializePayload
Aws::String SerializePayload() const override
AWSString.h
Aws::MachineLearning::Model::TaggableResourceType
TaggableResourceType
Definition: TaggableResourceType.h:17
MachineLearningRequest.h
Aws::MachineLearning::MachineLearningRequest
Definition: MachineLearningRequest.h:17
Aws::MachineLearning::Model::DescribeTagsRequest::WithResourceId
DescribeTagsRequest & WithResourceId(const char *value)
Definition: DescribeTagsRequest.h:76
Aws::MachineLearning::Model::DescribeTagsRequest
Definition: DescribeTagsRequest.h:23
Aws
Definition: AccessManagementClient.h:15
Aws::MachineLearning::Model::DescribeTagsRequest::SetResourceType
void SetResourceType(const TaggableResourceType &value)
Definition: DescribeTagsRequest.h:92
Aws::MachineLearning::Model::DescribeTagsRequest::DescribeTagsRequest
DescribeTagsRequest()
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::MachineLearning::Model::DescribeTagsRequest::WithResourceType
DescribeTagsRequest & WithResourceType(TaggableResourceType &&value)
Definition: DescribeTagsRequest.h:107
TaggableResourceType.h
Aws::MachineLearning::Model::DescribeTagsRequest::WithResourceId
DescribeTagsRequest & WithResourceId(Aws::String &&value)
Definition: DescribeTagsRequest.h:71
Aws::MachineLearning::Model::DescribeTagsRequest::GetResourceType
const TaggableResourceType & GetResourceType() const
Definition: DescribeTagsRequest.h:82
Aws::MachineLearning::Model::DescribeTagsRequest::ResourceTypeHasBeenSet
bool ResourceTypeHasBeenSet() const
Definition: DescribeTagsRequest.h:87