AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateRepositoryRequest.h
1
6#pragma once
7#include <aws/proton/Proton_EXPORTS.h>
8#include <aws/proton/ProtonRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/proton/model/RepositoryProvider.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/proton/model/Tag.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Proton
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_PROTON_API CreateRepositoryRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateRepository"; }
34
35 AWS_PROTON_API Aws::String SerializePayload() const override;
36
38
39
41
47 inline const Aws::String& GetConnectionArn() const { return m_connectionArn; }
48 inline bool ConnectionArnHasBeenSet() const { return m_connectionArnHasBeenSet; }
49 template<typename ConnectionArnT = Aws::String>
50 void SetConnectionArn(ConnectionArnT&& value) { m_connectionArnHasBeenSet = true; m_connectionArn = std::forward<ConnectionArnT>(value); }
51 template<typename ConnectionArnT = Aws::String>
52 CreateRepositoryRequest& WithConnectionArn(ConnectionArnT&& value) { SetConnectionArn(std::forward<ConnectionArnT>(value)); return *this;}
54
56
60 inline const Aws::String& GetEncryptionKey() const { return m_encryptionKey; }
61 inline bool EncryptionKeyHasBeenSet() const { return m_encryptionKeyHasBeenSet; }
62 template<typename EncryptionKeyT = Aws::String>
63 void SetEncryptionKey(EncryptionKeyT&& value) { m_encryptionKeyHasBeenSet = true; m_encryptionKey = std::forward<EncryptionKeyT>(value); }
64 template<typename EncryptionKeyT = Aws::String>
65 CreateRepositoryRequest& WithEncryptionKey(EncryptionKeyT&& value) { SetEncryptionKey(std::forward<EncryptionKeyT>(value)); return *this;}
67
69
72 inline const Aws::String& GetName() const { return m_name; }
73 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
74 template<typename NameT = Aws::String>
75 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
76 template<typename NameT = Aws::String>
77 CreateRepositoryRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
79
81
84 inline RepositoryProvider GetProvider() const { return m_provider; }
85 inline bool ProviderHasBeenSet() const { return m_providerHasBeenSet; }
86 inline void SetProvider(RepositoryProvider value) { m_providerHasBeenSet = true; m_provider = value; }
89
91
97 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
98 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
99 template<typename TagsT = Aws::Vector<Tag>>
100 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
101 template<typename TagsT = Aws::Vector<Tag>>
102 CreateRepositoryRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
103 template<typename TagsT = Tag>
104 CreateRepositoryRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
106 private:
107
108 Aws::String m_connectionArn;
109 bool m_connectionArnHasBeenSet = false;
110
111 Aws::String m_encryptionKey;
112 bool m_encryptionKeyHasBeenSet = false;
113
114 Aws::String m_name;
115 bool m_nameHasBeenSet = false;
116
118 bool m_providerHasBeenSet = false;
119
120 Aws::Vector<Tag> m_tags;
121 bool m_tagsHasBeenSet = false;
122 };
123
124} // namespace Model
125} // namespace Proton
126} // namespace Aws
CreateRepositoryRequest & WithProvider(RepositoryProvider value)
CreateRepositoryRequest & WithConnectionArn(ConnectionArnT &&value)
CreateRepositoryRequest & WithName(NameT &&value)
CreateRepositoryRequest & WithTags(TagsT &&value)
CreateRepositoryRequest & WithEncryptionKey(EncryptionKeyT &&value)
AWS_PROTON_API Aws::String SerializePayload() const override
AWS_PROTON_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_PROTON_API CreateRepositoryRequest()=default
virtual const char * GetServiceRequestName() const override
CreateRepositoryRequest & AddTags(TagsT &&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