AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateSinkRequest.h
1
6#pragma once
7#include <aws/oam/OAM_EXPORTS.h>
8#include <aws/oam/OAMRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <utility>
12
13namespace Aws
14{
15namespace OAM
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_OAM_API CreateSinkRequest();
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 "CreateSink"; }
32
33 AWS_OAM_API Aws::String SerializePayload() const override;
34
35
37
40 inline const Aws::String& GetName() const{ return m_name; }
41 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
42 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
43 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
44 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
45 inline CreateSinkRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
46 inline CreateSinkRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
47 inline CreateSinkRequest& WithName(const char* value) { SetName(value); return *this;}
49
51
60 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
61 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
62 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
63 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
64 inline CreateSinkRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
65 inline CreateSinkRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
66 inline CreateSinkRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
67 inline CreateSinkRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
68 inline CreateSinkRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
69 inline CreateSinkRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
70 inline CreateSinkRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
71 inline CreateSinkRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
72 inline CreateSinkRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
74 private:
75
76 Aws::String m_name;
77 bool m_nameHasBeenSet = false;
78
80 bool m_tagsHasBeenSet = false;
81 };
82
83} // namespace Model
84} // namespace OAM
85} // namespace Aws
CreateSinkRequest & WithName(const char *value)
CreateSinkRequest & AddTags(const Aws::String &key, Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
void SetName(Aws::String &&value)
CreateSinkRequest & AddTags(const char *key, Aws::String &&value)
const Aws::String & GetName() const
CreateSinkRequest & WithName(Aws::String &&value)
CreateSinkRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateSinkRequest & AddTags(Aws::String &&key, Aws::String &&value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
AWS_OAM_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
CreateSinkRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreateSinkRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateSinkRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateSinkRequest & AddTags(Aws::String &&key, const char *value)
CreateSinkRequest & AddTags(const char *key, const char *value)
CreateSinkRequest & WithName(const Aws::String &value)
void SetName(const Aws::String &value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String