AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CreateConnectionRequest.h
1
6#pragma once
7#include <aws/codestar-connections/CodeStarconnectionsRequest.h>
8#include <aws/codestar-connections/CodeStarconnections_EXPORTS.h>
9#include <aws/codestar-connections/model/ProviderType.h>
10#include <aws/codestar-connections/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 CodeStarconnections {
18namespace Model {
19
23 public:
24 AWS_CODESTARCONNECTIONS_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_CODESTARCONNECTIONS_API Aws::String SerializePayload() const override;
33
34 AWS_CODESTARCONNECTIONS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
35
37
41 inline ProviderType GetProviderType() const { return m_providerType; }
42 inline bool ProviderTypeHasBeenSet() const { return m_providerTypeHasBeenSet; }
43 inline void SetProviderType(ProviderType value) {
44 m_providerTypeHasBeenSet = true;
45 m_providerType = value;
46 }
48 SetProviderType(value);
49 return *this;
50 }
52
54
57 inline const Aws::String& GetConnectionName() const { return m_connectionName; }
58 inline bool ConnectionNameHasBeenSet() const { return m_connectionNameHasBeenSet; }
59 template <typename ConnectionNameT = Aws::String>
60 void SetConnectionName(ConnectionNameT&& value) {
61 m_connectionNameHasBeenSet = true;
62 m_connectionName = std::forward<ConnectionNameT>(value);
63 }
64 template <typename ConnectionNameT = Aws::String>
65 CreateConnectionRequest& WithConnectionName(ConnectionNameT&& value) {
66 SetConnectionName(std::forward<ConnectionNameT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
76 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
77 template <typename TagsT = Aws::Vector<Tag>>
78 void SetTags(TagsT&& value) {
79 m_tagsHasBeenSet = true;
80 m_tags = std::forward<TagsT>(value);
81 }
82 template <typename TagsT = Aws::Vector<Tag>>
84 SetTags(std::forward<TagsT>(value));
85 return *this;
86 }
87 template <typename TagsT = Tag>
89 m_tagsHasBeenSet = true;
90 m_tags.emplace_back(std::forward<TagsT>(value));
91 return *this;
92 }
94
96
100 inline const Aws::String& GetHostArn() const { return m_hostArn; }
101 inline bool HostArnHasBeenSet() const { return m_hostArnHasBeenSet; }
102 template <typename HostArnT = Aws::String>
103 void SetHostArn(HostArnT&& value) {
104 m_hostArnHasBeenSet = true;
105 m_hostArn = std::forward<HostArnT>(value);
106 }
107 template <typename HostArnT = Aws::String>
109 SetHostArn(std::forward<HostArnT>(value));
110 return *this;
111 }
113 private:
114 ProviderType m_providerType{ProviderType::NOT_SET};
115
116 Aws::String m_connectionName;
117
118 Aws::Vector<Tag> m_tags;
119
120 Aws::String m_hostArn;
121 bool m_providerTypeHasBeenSet = false;
122 bool m_connectionNameHasBeenSet = false;
123 bool m_tagsHasBeenSet = false;
124 bool m_hostArnHasBeenSet = false;
125};
126
127} // namespace Model
128} // namespace CodeStarconnections
129} // namespace Aws
CreateConnectionRequest & WithConnectionName(ConnectionNameT &&value)
CreateConnectionRequest & WithHostArn(HostArnT &&value)
CreateConnectionRequest & WithProviderType(ProviderType value)
AWS_CODESTARCONNECTIONS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_CODESTARCONNECTIONS_API Aws::String SerializePayload() const override
AWS_CODESTARCONNECTIONS_API CreateConnectionRequest()=default
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