AWS SDK for C++  1.9.131
AWS SDK for C++
CreateTagsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace ApplicationDiscoveryService
17 {
18 namespace Model
19 {
20 
24  {
25  public:
27 
28  // Service request name is the Operation name which will send this request out,
29  // each operation should has unique request name, so that we can get operation's name from this request.
30  // Note: this is not true for response, multiple operations may have the same response name,
31  // so we can not get operation's name from response.
32  inline virtual const char* GetServiceRequestName() const override { return "CreateTags"; }
33 
34  Aws::String SerializePayload() const override;
35 
37 
38 
42  inline const Aws::Vector<Aws::String>& GetConfigurationIds() const{ return m_configurationIds; }
43 
47  inline bool ConfigurationIdsHasBeenSet() const { return m_configurationIdsHasBeenSet; }
48 
52  inline void SetConfigurationIds(const Aws::Vector<Aws::String>& value) { m_configurationIdsHasBeenSet = true; m_configurationIds = value; }
53 
57  inline void SetConfigurationIds(Aws::Vector<Aws::String>&& value) { m_configurationIdsHasBeenSet = true; m_configurationIds = std::move(value); }
58 
62  inline CreateTagsRequest& WithConfigurationIds(const Aws::Vector<Aws::String>& value) { SetConfigurationIds(value); return *this;}
63 
67  inline CreateTagsRequest& WithConfigurationIds(Aws::Vector<Aws::String>&& value) { SetConfigurationIds(std::move(value)); return *this;}
68 
72  inline CreateTagsRequest& AddConfigurationIds(const Aws::String& value) { m_configurationIdsHasBeenSet = true; m_configurationIds.push_back(value); return *this; }
73 
77  inline CreateTagsRequest& AddConfigurationIds(Aws::String&& value) { m_configurationIdsHasBeenSet = true; m_configurationIds.push_back(std::move(value)); return *this; }
78 
82  inline CreateTagsRequest& AddConfigurationIds(const char* value) { m_configurationIdsHasBeenSet = true; m_configurationIds.push_back(value); return *this; }
83 
84 
90  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
91 
97  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
98 
104  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
105 
111  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
112 
118  inline CreateTagsRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
119 
125  inline CreateTagsRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
126 
132  inline CreateTagsRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
133 
139  inline CreateTagsRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
140 
141  private:
142 
143  Aws::Vector<Aws::String> m_configurationIds;
144  bool m_configurationIdsHasBeenSet;
145 
146  Aws::Vector<Tag> m_tags;
147  bool m_tagsHasBeenSet;
148  };
149 
150 } // namespace Model
151 } // namespace ApplicationDiscoveryService
152 } // namespace Aws
Aws::ApplicationDiscoveryService::Model::CreateTagsRequest::CreateTagsRequest
CreateTagsRequest()
Aws::ApplicationDiscoveryService::Model::CreateTagsRequest::AddConfigurationIds
CreateTagsRequest & AddConfigurationIds(Aws::String &&value)
Definition: CreateTagsRequest.h:77
Aws::ApplicationDiscoveryService::Model::CreateTagsRequest::AddConfigurationIds
CreateTagsRequest & AddConfigurationIds(const char *value)
Definition: CreateTagsRequest.h:82
Aws::ApplicationDiscoveryService::Model::CreateTagsRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::ApplicationDiscoveryService::Model::CreateTagsRequest::WithTags
CreateTagsRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: CreateTagsRequest.h:118
Aws::ApplicationDiscoveryService::Model::CreateTagsRequest::WithTags
CreateTagsRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: CreateTagsRequest.h:125
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::ApplicationDiscoveryService::Model::CreateTagsRequest::SetConfigurationIds
void SetConfigurationIds(const Aws::Vector< Aws::String > &value)
Definition: CreateTagsRequest.h:52
Aws::ApplicationDiscoveryService::Model::CreateTagsRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: CreateTagsRequest.h:111
ApplicationDiscoveryService_EXPORTS.h
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::ApplicationDiscoveryService::Model::CreateTagsRequest::ConfigurationIdsHasBeenSet
bool ConfigurationIdsHasBeenSet() const
Definition: CreateTagsRequest.h:47
AWSVector.h
Aws::ApplicationDiscoveryService::Model::CreateTagsRequest::AddConfigurationIds
CreateTagsRequest & AddConfigurationIds(const Aws::String &value)
Definition: CreateTagsRequest.h:72
Aws::ApplicationDiscoveryService::Model::CreateTagsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::ApplicationDiscoveryService::Model::CreateTagsRequest::AddTags
CreateTagsRequest & AddTags(Tag &&value)
Definition: CreateTagsRequest.h:139
Aws::ApplicationDiscoveryService::Model::CreateTagsRequest::AddTags
CreateTagsRequest & AddTags(const Tag &value)
Definition: CreateTagsRequest.h:132
Aws::ApplicationDiscoveryService::Model::CreateTagsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateTagsRequest.h:32
Aws::ApplicationDiscoveryService::Model::CreateTagsRequest::GetConfigurationIds
const Aws::Vector< Aws::String > & GetConfigurationIds() const
Definition: CreateTagsRequest.h:42
Aws::ApplicationDiscoveryService::Model::CreateTagsRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: CreateTagsRequest.h:104
AWSString.h
Aws::ApplicationDiscoveryService::Model::CreateTagsRequest::WithConfigurationIds
CreateTagsRequest & WithConfigurationIds(Aws::Vector< Aws::String > &&value)
Definition: CreateTagsRequest.h:67
Aws::ApplicationDiscoveryService::Model::CreateTagsRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: CreateTagsRequest.h:90
ApplicationDiscoveryServiceRequest.h
Aws::ApplicationDiscoveryService::Model::CreateTagsRequest
Definition: CreateTagsRequest.h:24
Aws::ApplicationDiscoveryService::ApplicationDiscoveryServiceRequest
Definition: ApplicationDiscoveryServiceRequest.h:17
Aws::ApplicationDiscoveryService::Model::CreateTagsRequest::WithConfigurationIds
CreateTagsRequest & WithConfigurationIds(const Aws::Vector< Aws::String > &value)
Definition: CreateTagsRequest.h:62
Aws::ApplicationDiscoveryService::Model::CreateTagsRequest::SetConfigurationIds
void SetConfigurationIds(Aws::Vector< Aws::String > &&value)
Definition: CreateTagsRequest.h:57
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Tag.h
Aws::ApplicationDiscoveryService::Model::CreateTagsRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateTagsRequest.h:97
Aws::ApplicationDiscoveryService::Model::Tag
Definition: Tag.h:32
AWS_APPLICATIONDISCOVERYSERVICE_API
#define AWS_APPLICATIONDISCOVERYSERVICE_API
Definition: ApplicationDiscoveryService_EXPORTS.h:28