AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateRevisionRequest.h
1
6#pragma once
7#include <aws/dataexchange/DataExchange_EXPORTS.h>
8#include <aws/dataexchange/DataExchangeRequest.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 DataExchange
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_DATAEXCHANGE_API CreateRevisionRequest();
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 "CreateRevision"; }
32
33 AWS_DATAEXCHANGE_API Aws::String SerializePayload() const override;
34
35
37
40 inline const Aws::String& GetComment() const{ return m_comment; }
41 inline bool CommentHasBeenSet() const { return m_commentHasBeenSet; }
42 inline void SetComment(const Aws::String& value) { m_commentHasBeenSet = true; m_comment = value; }
43 inline void SetComment(Aws::String&& value) { m_commentHasBeenSet = true; m_comment = std::move(value); }
44 inline void SetComment(const char* value) { m_commentHasBeenSet = true; m_comment.assign(value); }
45 inline CreateRevisionRequest& WithComment(const Aws::String& value) { SetComment(value); return *this;}
46 inline CreateRevisionRequest& WithComment(Aws::String&& value) { SetComment(std::move(value)); return *this;}
47 inline CreateRevisionRequest& WithComment(const char* value) { SetComment(value); return *this;}
49
51
54 inline const Aws::String& GetDataSetId() const{ return m_dataSetId; }
55 inline bool DataSetIdHasBeenSet() const { return m_dataSetIdHasBeenSet; }
56 inline void SetDataSetId(const Aws::String& value) { m_dataSetIdHasBeenSet = true; m_dataSetId = value; }
57 inline void SetDataSetId(Aws::String&& value) { m_dataSetIdHasBeenSet = true; m_dataSetId = std::move(value); }
58 inline void SetDataSetId(const char* value) { m_dataSetIdHasBeenSet = true; m_dataSetId.assign(value); }
59 inline CreateRevisionRequest& WithDataSetId(const Aws::String& value) { SetDataSetId(value); return *this;}
60 inline CreateRevisionRequest& WithDataSetId(Aws::String&& value) { SetDataSetId(std::move(value)); return *this;}
61 inline CreateRevisionRequest& WithDataSetId(const char* value) { SetDataSetId(value); return *this;}
63
65
71 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
72 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
73 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
74 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
75 inline CreateRevisionRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
76 inline CreateRevisionRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
77 inline CreateRevisionRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
78 inline CreateRevisionRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
79 inline CreateRevisionRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
80 inline CreateRevisionRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
81 inline CreateRevisionRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
82 inline CreateRevisionRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
83 inline CreateRevisionRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
85 private:
86
87 Aws::String m_comment;
88 bool m_commentHasBeenSet = false;
89
90 Aws::String m_dataSetId;
91 bool m_dataSetIdHasBeenSet = false;
92
94 bool m_tagsHasBeenSet = false;
95 };
96
97} // namespace Model
98} // namespace DataExchange
99} // namespace Aws
CreateRevisionRequest & WithComment(const char *value)
CreateRevisionRequest & WithDataSetId(Aws::String &&value)
AWS_DATAEXCHANGE_API Aws::String SerializePayload() const override
CreateRevisionRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateRevisionRequest & AddTags(Aws::String &&key, const char *value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateRevisionRequest & WithComment(Aws::String &&value)
CreateRevisionRequest & WithDataSetId(const Aws::String &value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
virtual const char * GetServiceRequestName() const override
CreateRevisionRequest & WithComment(const Aws::String &value)
CreateRevisionRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateRevisionRequest & WithDataSetId(const char *value)
CreateRevisionRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateRevisionRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateRevisionRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreateRevisionRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateRevisionRequest & AddTags(const char *key, const char *value)
CreateRevisionRequest & AddTags(const char *key, 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