AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
CreateConnectionRequest.h
1
6#pragma once
7#include <aws/apprunner/AppRunnerRequest.h>
8#include <aws/apprunner/AppRunner_EXPORTS.h>
9#include <aws/apprunner/model/ProviderType.h>
10#include <aws/apprunner/model/Tag.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13
14#include <utility>
15
16namespace Aws {
17namespace AppRunner {
18namespace Model {
19
23 public:
24 AWS_APPRUNNER_API CreateConnectionRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "CreateConnection"; }
31
32 AWS_APPRUNNER_API Aws::String SerializePayload() const override;
33
35
37
42 inline const Aws::String& GetConnectionName() const { return m_connectionName; }
43 inline bool ConnectionNameHasBeenSet() const { return m_connectionNameHasBeenSet; }
44 template <typename ConnectionNameT = Aws::String>
45 void SetConnectionName(ConnectionNameT&& value) {
46 m_connectionNameHasBeenSet = true;
47 m_connectionName = std::forward<ConnectionNameT>(value);
48 }
49 template <typename ConnectionNameT = Aws::String>
50 CreateConnectionRequest& WithConnectionName(ConnectionNameT&& value) {
51 SetConnectionName(std::forward<ConnectionNameT>(value));
52 return *this;
53 }
55
57
60 inline ProviderType GetProviderType() const { return m_providerType; }
61 inline bool ProviderTypeHasBeenSet() const { return m_providerTypeHasBeenSet; }
62 inline void SetProviderType(ProviderType value) {
63 m_providerTypeHasBeenSet = true;
64 m_providerType = value;
65 }
67 SetProviderType(value);
68 return *this;
69 }
71
73
77 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
78 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
79 template <typename TagsT = Aws::Vector<Tag>>
80 void SetTags(TagsT&& value) {
81 m_tagsHasBeenSet = true;
82 m_tags = std::forward<TagsT>(value);
83 }
84 template <typename TagsT = Aws::Vector<Tag>>
86 SetTags(std::forward<TagsT>(value));
87 return *this;
88 }
89 template <typename TagsT = Tag>
91 m_tagsHasBeenSet = true;
92 m_tags.emplace_back(std::forward<TagsT>(value));
93 return *this;
94 }
96 private:
97 Aws::String m_connectionName;
98
99 ProviderType m_providerType{ProviderType::NOT_SET};
100
101 Aws::Vector<Tag> m_tags;
102 bool m_connectionNameHasBeenSet = false;
103 bool m_providerTypeHasBeenSet = false;
104 bool m_tagsHasBeenSet = false;
105};
106
107} // namespace Model
108} // namespace AppRunner
109} // namespace Aws
CreateConnectionRequest & AddTags(TagsT &&value)
CreateConnectionRequest & WithConnectionName(ConnectionNameT &&value)
AWS_APPRUNNER_API CreateConnectionRequest()=default
CreateConnectionRequest & WithTags(TagsT &&value)
AWS_APPRUNNER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
virtual const char * GetServiceRequestName() const override
AWS_APPRUNNER_API Aws::String SerializePayload() const override
CreateConnectionRequest & WithProviderType(ProviderType value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector