AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CopyOptionGroupRequest.h
1
6#pragma once
7#include <aws/rds/RDS_EXPORTS.h>
8#include <aws/rds/RDSRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/rds/model/Tag.h>
12#include <utility>
13
14namespace Aws
15{
16namespace RDS
17{
18namespace Model
19{
20
27 {
28 public:
29 AWS_RDS_API CopyOptionGroupRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "CopyOptionGroup"; }
36
37 AWS_RDS_API Aws::String SerializePayload() const override;
38
39 protected:
40 AWS_RDS_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
41
42 public:
43
45
49 inline const Aws::String& GetSourceOptionGroupIdentifier() const { return m_sourceOptionGroupIdentifier; }
50 inline bool SourceOptionGroupIdentifierHasBeenSet() const { return m_sourceOptionGroupIdentifierHasBeenSet; }
51 template<typename SourceOptionGroupIdentifierT = Aws::String>
52 void SetSourceOptionGroupIdentifier(SourceOptionGroupIdentifierT&& value) { m_sourceOptionGroupIdentifierHasBeenSet = true; m_sourceOptionGroupIdentifier = std::forward<SourceOptionGroupIdentifierT>(value); }
53 template<typename SourceOptionGroupIdentifierT = Aws::String>
54 CopyOptionGroupRequest& WithSourceOptionGroupIdentifier(SourceOptionGroupIdentifierT&& value) { SetSourceOptionGroupIdentifier(std::forward<SourceOptionGroupIdentifierT>(value)); return *this;}
56
58
65 inline const Aws::String& GetTargetOptionGroupIdentifier() const { return m_targetOptionGroupIdentifier; }
66 inline bool TargetOptionGroupIdentifierHasBeenSet() const { return m_targetOptionGroupIdentifierHasBeenSet; }
67 template<typename TargetOptionGroupIdentifierT = Aws::String>
68 void SetTargetOptionGroupIdentifier(TargetOptionGroupIdentifierT&& value) { m_targetOptionGroupIdentifierHasBeenSet = true; m_targetOptionGroupIdentifier = std::forward<TargetOptionGroupIdentifierT>(value); }
69 template<typename TargetOptionGroupIdentifierT = Aws::String>
70 CopyOptionGroupRequest& WithTargetOptionGroupIdentifier(TargetOptionGroupIdentifierT&& value) { SetTargetOptionGroupIdentifier(std::forward<TargetOptionGroupIdentifierT>(value)); return *this;}
72
74
77 inline const Aws::String& GetTargetOptionGroupDescription() const { return m_targetOptionGroupDescription; }
78 inline bool TargetOptionGroupDescriptionHasBeenSet() const { return m_targetOptionGroupDescriptionHasBeenSet; }
79 template<typename TargetOptionGroupDescriptionT = Aws::String>
80 void SetTargetOptionGroupDescription(TargetOptionGroupDescriptionT&& value) { m_targetOptionGroupDescriptionHasBeenSet = true; m_targetOptionGroupDescription = std::forward<TargetOptionGroupDescriptionT>(value); }
81 template<typename TargetOptionGroupDescriptionT = Aws::String>
82 CopyOptionGroupRequest& WithTargetOptionGroupDescription(TargetOptionGroupDescriptionT&& value) { SetTargetOptionGroupDescription(std::forward<TargetOptionGroupDescriptionT>(value)); return *this;}
84
86
87 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
88 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
89 template<typename TagsT = Aws::Vector<Tag>>
90 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
91 template<typename TagsT = Aws::Vector<Tag>>
92 CopyOptionGroupRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
93 template<typename TagsT = Tag>
94 CopyOptionGroupRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
96 private:
97
98 Aws::String m_sourceOptionGroupIdentifier;
99 bool m_sourceOptionGroupIdentifierHasBeenSet = false;
100
101 Aws::String m_targetOptionGroupIdentifier;
102 bool m_targetOptionGroupIdentifierHasBeenSet = false;
103
104 Aws::String m_targetOptionGroupDescription;
105 bool m_targetOptionGroupDescriptionHasBeenSet = false;
106
107 Aws::Vector<Tag> m_tags;
108 bool m_tagsHasBeenSet = false;
109 };
110
111} // namespace Model
112} // namespace RDS
113} // namespace Aws
AWS_RDS_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
const Aws::String & GetTargetOptionGroupDescription() const
const Aws::String & GetTargetOptionGroupIdentifier() const
void SetSourceOptionGroupIdentifier(SourceOptionGroupIdentifierT &&value)
AWS_RDS_API Aws::String SerializePayload() const override
void SetTargetOptionGroupDescription(TargetOptionGroupDescriptionT &&value)
CopyOptionGroupRequest & WithTags(TagsT &&value)
AWS_RDS_API CopyOptionGroupRequest()=default
void SetTargetOptionGroupIdentifier(TargetOptionGroupIdentifierT &&value)
const Aws::Vector< Tag > & GetTags() const
CopyOptionGroupRequest & WithTargetOptionGroupDescription(TargetOptionGroupDescriptionT &&value)
CopyOptionGroupRequest & AddTags(TagsT &&value)
virtual const char * GetServiceRequestName() const override
CopyOptionGroupRequest & WithSourceOptionGroupIdentifier(SourceOptionGroupIdentifierT &&value)
const Aws::String & GetSourceOptionGroupIdentifier() const
CopyOptionGroupRequest & WithTargetOptionGroupIdentifier(TargetOptionGroupIdentifierT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector