AWS SDK for C++  1.8.129
AWS SDK for C++
TagDeliveryStreamRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <aws/firehose/model/Tag.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Firehose
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 "TagDeliveryStream"; }
33 
34  Aws::String SerializePayload() const override;
35 
37 
38 
42  inline const Aws::String& GetDeliveryStreamName() const{ return m_deliveryStreamName; }
43 
47  inline bool DeliveryStreamNameHasBeenSet() const { return m_deliveryStreamNameHasBeenSet; }
48 
52  inline void SetDeliveryStreamName(const Aws::String& value) { m_deliveryStreamNameHasBeenSet = true; m_deliveryStreamName = value; }
53 
57  inline void SetDeliveryStreamName(Aws::String&& value) { m_deliveryStreamNameHasBeenSet = true; m_deliveryStreamName = std::move(value); }
58 
62  inline void SetDeliveryStreamName(const char* value) { m_deliveryStreamNameHasBeenSet = true; m_deliveryStreamName.assign(value); }
63 
67  inline TagDeliveryStreamRequest& WithDeliveryStreamName(const Aws::String& value) { SetDeliveryStreamName(value); return *this;}
68 
72  inline TagDeliveryStreamRequest& WithDeliveryStreamName(Aws::String&& value) { SetDeliveryStreamName(std::move(value)); return *this;}
73 
77  inline TagDeliveryStreamRequest& WithDeliveryStreamName(const char* value) { SetDeliveryStreamName(value); return *this;}
78 
79 
83  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
84 
88  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
89 
93  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
94 
98  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
99 
103  inline TagDeliveryStreamRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
104 
108  inline TagDeliveryStreamRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
109 
113  inline TagDeliveryStreamRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
114 
118  inline TagDeliveryStreamRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
119 
120  private:
121 
122  Aws::String m_deliveryStreamName;
123  bool m_deliveryStreamNameHasBeenSet;
124 
125  Aws::Vector<Tag> m_tags;
126  bool m_tagsHasBeenSet;
127  };
128 
129 } // namespace Model
130 } // namespace Firehose
131 } // namespace Aws
Aws::Firehose::FirehoseRequest
Definition: FirehoseRequest.h:17
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Firehose::Model::TagDeliveryStreamRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Firehose::Model::TagDeliveryStreamRequest::GetDeliveryStreamName
const Aws::String & GetDeliveryStreamName() const
Definition: TagDeliveryStreamRequest.h:42
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Firehose::Model::TagDeliveryStreamRequest::WithDeliveryStreamName
TagDeliveryStreamRequest & WithDeliveryStreamName(const Aws::String &value)
Definition: TagDeliveryStreamRequest.h:67
Aws::Firehose::Model::TagDeliveryStreamRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: TagDeliveryStreamRequest.h:88
Aws::Firehose::Model::TagDeliveryStreamRequest::TagDeliveryStreamRequest
TagDeliveryStreamRequest()
Aws::Firehose::Model::TagDeliveryStreamRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: TagDeliveryStreamRequest.h:32
AWSVector.h
Aws::Firehose::Model::TagDeliveryStreamRequest::AddTags
TagDeliveryStreamRequest & AddTags(Tag &&value)
Definition: TagDeliveryStreamRequest.h:118
Aws::Firehose::Model::TagDeliveryStreamRequest::WithTags
TagDeliveryStreamRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: TagDeliveryStreamRequest.h:108
Aws::Firehose::Model::TagDeliveryStreamRequest
Definition: TagDeliveryStreamRequest.h:24
Aws::Firehose::Model::TagDeliveryStreamRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: TagDeliveryStreamRequest.h:93
Aws::Firehose::Model::TagDeliveryStreamRequest::AddTags
TagDeliveryStreamRequest & AddTags(const Tag &value)
Definition: TagDeliveryStreamRequest.h:113
Aws::Firehose::Model::Tag
Definition: Tag.h:33
AWS_FIREHOSE_API
#define AWS_FIREHOSE_API
Definition: Firehose_EXPORTS.h:28
Aws::Firehose::Model::TagDeliveryStreamRequest::WithDeliveryStreamName
TagDeliveryStreamRequest & WithDeliveryStreamName(const char *value)
Definition: TagDeliveryStreamRequest.h:77
AWSString.h
Aws::Firehose::Model::TagDeliveryStreamRequest::SetDeliveryStreamName
void SetDeliveryStreamName(Aws::String &&value)
Definition: TagDeliveryStreamRequest.h:57
Firehose_EXPORTS.h
Aws::Firehose::Model::TagDeliveryStreamRequest::WithDeliveryStreamName
TagDeliveryStreamRequest & WithDeliveryStreamName(Aws::String &&value)
Definition: TagDeliveryStreamRequest.h:72
Aws
Definition: AccessManagementClient.h:15
Aws::Firehose::Model::TagDeliveryStreamRequest::DeliveryStreamNameHasBeenSet
bool DeliveryStreamNameHasBeenSet() const
Definition: TagDeliveryStreamRequest.h:47
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Firehose::Model::TagDeliveryStreamRequest::WithTags
TagDeliveryStreamRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: TagDeliveryStreamRequest.h:103
Aws::Firehose::Model::TagDeliveryStreamRequest::SetDeliveryStreamName
void SetDeliveryStreamName(const char *value)
Definition: TagDeliveryStreamRequest.h:62
Tag.h
FirehoseRequest.h
Aws::Firehose::Model::TagDeliveryStreamRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Firehose::Model::TagDeliveryStreamRequest::SetDeliveryStreamName
void SetDeliveryStreamName(const Aws::String &value)
Definition: TagDeliveryStreamRequest.h:52
Aws::Firehose::Model::TagDeliveryStreamRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: TagDeliveryStreamRequest.h:98
Aws::Firehose::Model::TagDeliveryStreamRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: TagDeliveryStreamRequest.h:83