AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateRepositoryLinkRequest.h
1
6#pragma once
7#include <aws/codeconnections/CodeConnections_EXPORTS.h>
8#include <aws/codeconnections/CodeConnectionsRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/codeconnections/model/Tag.h>
12#include <utility>
13
14namespace Aws
15{
16namespace CodeConnections
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_CODECONNECTIONS_API CreateRepositoryLinkRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateRepositoryLink"; }
33
34 AWS_CODECONNECTIONS_API Aws::String SerializePayload() const override;
35
36 AWS_CODECONNECTIONS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
38
40
44 inline const Aws::String& GetConnectionArn() const { return m_connectionArn; }
45 inline bool ConnectionArnHasBeenSet() const { return m_connectionArnHasBeenSet; }
46 template<typename ConnectionArnT = Aws::String>
47 void SetConnectionArn(ConnectionArnT&& value) { m_connectionArnHasBeenSet = true; m_connectionArn = std::forward<ConnectionArnT>(value); }
48 template<typename ConnectionArnT = Aws::String>
49 CreateRepositoryLinkRequest& WithConnectionArn(ConnectionArnT&& value) { SetConnectionArn(std::forward<ConnectionArnT>(value)); return *this;}
51
53
57 inline const Aws::String& GetOwnerId() const { return m_ownerId; }
58 inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
59 template<typename OwnerIdT = Aws::String>
60 void SetOwnerId(OwnerIdT&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::forward<OwnerIdT>(value); }
61 template<typename OwnerIdT = Aws::String>
62 CreateRepositoryLinkRequest& WithOwnerId(OwnerIdT&& value) { SetOwnerId(std::forward<OwnerIdT>(value)); return *this;}
64
66
69 inline const Aws::String& GetRepositoryName() const { return m_repositoryName; }
70 inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
71 template<typename RepositoryNameT = Aws::String>
72 void SetRepositoryName(RepositoryNameT&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::forward<RepositoryNameT>(value); }
73 template<typename RepositoryNameT = Aws::String>
74 CreateRepositoryLinkRequest& WithRepositoryName(RepositoryNameT&& value) { SetRepositoryName(std::forward<RepositoryNameT>(value)); return *this;}
76
78
82 inline const Aws::String& GetEncryptionKeyArn() const { return m_encryptionKeyArn; }
83 inline bool EncryptionKeyArnHasBeenSet() const { return m_encryptionKeyArnHasBeenSet; }
84 template<typename EncryptionKeyArnT = Aws::String>
85 void SetEncryptionKeyArn(EncryptionKeyArnT&& value) { m_encryptionKeyArnHasBeenSet = true; m_encryptionKeyArn = std::forward<EncryptionKeyArnT>(value); }
86 template<typename EncryptionKeyArnT = Aws::String>
87 CreateRepositoryLinkRequest& WithEncryptionKeyArn(EncryptionKeyArnT&& value) { SetEncryptionKeyArn(std::forward<EncryptionKeyArnT>(value)); return *this;}
89
91
94 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
95 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
96 template<typename TagsT = Aws::Vector<Tag>>
97 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
98 template<typename TagsT = Aws::Vector<Tag>>
99 CreateRepositoryLinkRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
100 template<typename TagsT = Tag>
101 CreateRepositoryLinkRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
103 private:
104
105 Aws::String m_connectionArn;
106 bool m_connectionArnHasBeenSet = false;
107
108 Aws::String m_ownerId;
109 bool m_ownerIdHasBeenSet = false;
110
111 Aws::String m_repositoryName;
112 bool m_repositoryNameHasBeenSet = false;
113
114 Aws::String m_encryptionKeyArn;
115 bool m_encryptionKeyArnHasBeenSet = false;
116
117 Aws::Vector<Tag> m_tags;
118 bool m_tagsHasBeenSet = false;
119 };
120
121} // namespace Model
122} // namespace CodeConnections
123} // 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