AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CreateRepositoryLinkRequest.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/Tag.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16namespace CodeStarconnections {
17namespace Model {
18
22 public:
23 AWS_CODESTARCONNECTIONS_API CreateRepositoryLinkRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "CreateRepositoryLink"; }
30
31 AWS_CODESTARCONNECTIONS_API Aws::String SerializePayload() const override;
32
33 AWS_CODESTARCONNECTIONS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
34
36
40 inline const Aws::String& GetConnectionArn() const { return m_connectionArn; }
41 inline bool ConnectionArnHasBeenSet() const { return m_connectionArnHasBeenSet; }
42 template <typename ConnectionArnT = Aws::String>
43 void SetConnectionArn(ConnectionArnT&& value) {
44 m_connectionArnHasBeenSet = true;
45 m_connectionArn = std::forward<ConnectionArnT>(value);
46 }
47 template <typename ConnectionArnT = Aws::String>
49 SetConnectionArn(std::forward<ConnectionArnT>(value));
50 return *this;
51 }
53
55
59 inline const Aws::String& GetOwnerId() const { return m_ownerId; }
60 inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
61 template <typename OwnerIdT = Aws::String>
62 void SetOwnerId(OwnerIdT&& value) {
63 m_ownerIdHasBeenSet = true;
64 m_ownerId = std::forward<OwnerIdT>(value);
65 }
66 template <typename OwnerIdT = Aws::String>
68 SetOwnerId(std::forward<OwnerIdT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetRepositoryName() const { return m_repositoryName; }
78 inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
79 template <typename RepositoryNameT = Aws::String>
80 void SetRepositoryName(RepositoryNameT&& value) {
81 m_repositoryNameHasBeenSet = true;
82 m_repositoryName = std::forward<RepositoryNameT>(value);
83 }
84 template <typename RepositoryNameT = Aws::String>
86 SetRepositoryName(std::forward<RepositoryNameT>(value));
87 return *this;
88 }
90
92
96 inline const Aws::String& GetEncryptionKeyArn() const { return m_encryptionKeyArn; }
97 inline bool EncryptionKeyArnHasBeenSet() const { return m_encryptionKeyArnHasBeenSet; }
98 template <typename EncryptionKeyArnT = Aws::String>
99 void SetEncryptionKeyArn(EncryptionKeyArnT&& value) {
100 m_encryptionKeyArnHasBeenSet = true;
101 m_encryptionKeyArn = std::forward<EncryptionKeyArnT>(value);
102 }
103 template <typename EncryptionKeyArnT = Aws::String>
105 SetEncryptionKeyArn(std::forward<EncryptionKeyArnT>(value));
106 return *this;
107 }
109
111
114 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
115 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
116 template <typename TagsT = Aws::Vector<Tag>>
117 void SetTags(TagsT&& value) {
118 m_tagsHasBeenSet = true;
119 m_tags = std::forward<TagsT>(value);
120 }
121 template <typename TagsT = Aws::Vector<Tag>>
123 SetTags(std::forward<TagsT>(value));
124 return *this;
125 }
126 template <typename TagsT = Tag>
128 m_tagsHasBeenSet = true;
129 m_tags.emplace_back(std::forward<TagsT>(value));
130 return *this;
131 }
133 private:
134 Aws::String m_connectionArn;
135
136 Aws::String m_ownerId;
137
138 Aws::String m_repositoryName;
139
140 Aws::String m_encryptionKeyArn;
141
142 Aws::Vector<Tag> m_tags;
143 bool m_connectionArnHasBeenSet = false;
144 bool m_ownerIdHasBeenSet = false;
145 bool m_repositoryNameHasBeenSet = false;
146 bool m_encryptionKeyArnHasBeenSet = false;
147 bool m_tagsHasBeenSet = false;
148};
149
150} // namespace Model
151} // namespace CodeStarconnections
152} // namespace Aws
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