AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CopyDBParameterGroupRequest.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 CopyDBParameterGroupRequest() = 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 "CopyDBParameterGroup"; }
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
53 inline const Aws::String& GetSourceDBParameterGroupIdentifier() const { return m_sourceDBParameterGroupIdentifier; }
54 inline bool SourceDBParameterGroupIdentifierHasBeenSet() const { return m_sourceDBParameterGroupIdentifierHasBeenSet; }
55 template<typename SourceDBParameterGroupIdentifierT = Aws::String>
56 void SetSourceDBParameterGroupIdentifier(SourceDBParameterGroupIdentifierT&& value) { m_sourceDBParameterGroupIdentifierHasBeenSet = true; m_sourceDBParameterGroupIdentifier = std::forward<SourceDBParameterGroupIdentifierT>(value); }
57 template<typename SourceDBParameterGroupIdentifierT = Aws::String>
58 CopyDBParameterGroupRequest& WithSourceDBParameterGroupIdentifier(SourceDBParameterGroupIdentifierT&& value) { SetSourceDBParameterGroupIdentifier(std::forward<SourceDBParameterGroupIdentifierT>(value)); return *this;}
60
62
69 inline const Aws::String& GetTargetDBParameterGroupIdentifier() const { return m_targetDBParameterGroupIdentifier; }
70 inline bool TargetDBParameterGroupIdentifierHasBeenSet() const { return m_targetDBParameterGroupIdentifierHasBeenSet; }
71 template<typename TargetDBParameterGroupIdentifierT = Aws::String>
72 void SetTargetDBParameterGroupIdentifier(TargetDBParameterGroupIdentifierT&& value) { m_targetDBParameterGroupIdentifierHasBeenSet = true; m_targetDBParameterGroupIdentifier = std::forward<TargetDBParameterGroupIdentifierT>(value); }
73 template<typename TargetDBParameterGroupIdentifierT = Aws::String>
74 CopyDBParameterGroupRequest& WithTargetDBParameterGroupIdentifier(TargetDBParameterGroupIdentifierT&& value) { SetTargetDBParameterGroupIdentifier(std::forward<TargetDBParameterGroupIdentifierT>(value)); return *this;}
76
78
81 inline const Aws::String& GetTargetDBParameterGroupDescription() const { return m_targetDBParameterGroupDescription; }
82 inline bool TargetDBParameterGroupDescriptionHasBeenSet() const { return m_targetDBParameterGroupDescriptionHasBeenSet; }
83 template<typename TargetDBParameterGroupDescriptionT = Aws::String>
84 void SetTargetDBParameterGroupDescription(TargetDBParameterGroupDescriptionT&& value) { m_targetDBParameterGroupDescriptionHasBeenSet = true; m_targetDBParameterGroupDescription = std::forward<TargetDBParameterGroupDescriptionT>(value); }
85 template<typename TargetDBParameterGroupDescriptionT = Aws::String>
86 CopyDBParameterGroupRequest& WithTargetDBParameterGroupDescription(TargetDBParameterGroupDescriptionT&& value) { SetTargetDBParameterGroupDescription(std::forward<TargetDBParameterGroupDescriptionT>(value)); return *this;}
88
90
91 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
92 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
93 template<typename TagsT = Aws::Vector<Tag>>
94 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
95 template<typename TagsT = Aws::Vector<Tag>>
96 CopyDBParameterGroupRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
97 template<typename TagsT = Tag>
98 CopyDBParameterGroupRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
100 private:
101
102 Aws::String m_sourceDBParameterGroupIdentifier;
103 bool m_sourceDBParameterGroupIdentifierHasBeenSet = false;
104
105 Aws::String m_targetDBParameterGroupIdentifier;
106 bool m_targetDBParameterGroupIdentifierHasBeenSet = false;
107
108 Aws::String m_targetDBParameterGroupDescription;
109 bool m_targetDBParameterGroupDescriptionHasBeenSet = false;
110
111 Aws::Vector<Tag> m_tags;
112 bool m_tagsHasBeenSet = false;
113 };
114
115} // namespace Model
116} // namespace RDS
117} // namespace Aws
CopyDBParameterGroupRequest & WithTags(TagsT &&value)
CopyDBParameterGroupRequest & WithTargetDBParameterGroupDescription(TargetDBParameterGroupDescriptionT &&value)
void SetTargetDBParameterGroupDescription(TargetDBParameterGroupDescriptionT &&value)
AWS_RDS_API Aws::String SerializePayload() const override
AWS_RDS_API CopyDBParameterGroupRequest()=default
AWS_RDS_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
void SetSourceDBParameterGroupIdentifier(SourceDBParameterGroupIdentifierT &&value)
virtual const char * GetServiceRequestName() const override
void SetTargetDBParameterGroupIdentifier(TargetDBParameterGroupIdentifierT &&value)
CopyDBParameterGroupRequest & WithTargetDBParameterGroupIdentifier(TargetDBParameterGroupIdentifierT &&value)
CopyDBParameterGroupRequest & AddTags(TagsT &&value)
CopyDBParameterGroupRequest & WithSourceDBParameterGroupIdentifier(SourceDBParameterGroupIdentifierT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector