AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetConnectionArn(const Aws::String& value) { m_connectionArnHasBeenSet = true; m_connectionArn = value; }
50 inline void SetConnectionArn(Aws::String&& value) { m_connectionArnHasBeenSet = true; m_connectionArn = std::move(value); }
51 inline void SetConnectionArn(const char* value) { m_connectionArnHasBeenSet = true; m_connectionArn.assign(value); }
52 inline CreateRepositoryRequest& WithConnectionArn(const Aws::String& value) { SetConnectionArn(value); return *this;}
53 inline CreateRepositoryRequest& WithConnectionArn(Aws::String&& value) { SetConnectionArn(std::move(value)); return *this;}
54 inline CreateRepositoryRequest& WithConnectionArn(const char* value) { SetConnectionArn(value); return *this;}
56
58
62 inline const Aws::String& GetEncryptionKey() const{ return m_encryptionKey; }
63 inline bool EncryptionKeyHasBeenSet() const { return m_encryptionKeyHasBeenSet; }
64 inline void SetEncryptionKey(const Aws::String& value) { m_encryptionKeyHasBeenSet = true; m_encryptionKey = value; }
65 inline void SetEncryptionKey(Aws::String&& value) { m_encryptionKeyHasBeenSet = true; m_encryptionKey = std::move(value); }
66 inline void SetEncryptionKey(const char* value) { m_encryptionKeyHasBeenSet = true; m_encryptionKey.assign(value); }
67 inline CreateRepositoryRequest& WithEncryptionKey(const Aws::String& value) { SetEncryptionKey(value); return *this;}
68 inline CreateRepositoryRequest& WithEncryptionKey(Aws::String&& value) { SetEncryptionKey(std::move(value)); return *this;}
69 inline CreateRepositoryRequest& WithEncryptionKey(const char* value) { SetEncryptionKey(value); return *this;}
71
73
76 inline const Aws::String& GetName() const{ return m_name; }
77 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
78 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
79 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
80 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
81 inline CreateRepositoryRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
82 inline CreateRepositoryRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
83 inline CreateRepositoryRequest& WithName(const char* value) { SetName(value); return *this;}
85
87
90 inline const RepositoryProvider& GetProvider() const{ return m_provider; }
91 inline bool ProviderHasBeenSet() const { return m_providerHasBeenSet; }
92 inline void SetProvider(const RepositoryProvider& value) { m_providerHasBeenSet = true; m_provider = value; }
93 inline void SetProvider(RepositoryProvider&& value) { m_providerHasBeenSet = true; m_provider = std::move(value); }
94 inline CreateRepositoryRequest& WithProvider(const RepositoryProvider& value) { SetProvider(value); return *this;}
95 inline CreateRepositoryRequest& WithProvider(RepositoryProvider&& value) { SetProvider(std::move(value)); return *this;}
97
99
105 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
106 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
107 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
108 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
109 inline CreateRepositoryRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
110 inline CreateRepositoryRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
111 inline CreateRepositoryRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
112 inline CreateRepositoryRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
114 private:
115
116 Aws::String m_connectionArn;
117 bool m_connectionArnHasBeenSet = false;
118
119 Aws::String m_encryptionKey;
120 bool m_encryptionKeyHasBeenSet = false;
121
122 Aws::String m_name;
123 bool m_nameHasBeenSet = false;
124
125 RepositoryProvider m_provider;
126 bool m_providerHasBeenSet = false;
127
128 Aws::Vector<Tag> m_tags;
129 bool m_tagsHasBeenSet = false;
130 };
131
132} // namespace Model
133} // namespace Proton
134} // namespace Aws
CreateRepositoryRequest & WithTags(const Aws::Vector< Tag > &value)
CreateRepositoryRequest & WithEncryptionKey(const char *value)
CreateRepositoryRequest & WithName(const Aws::String &value)
CreateRepositoryRequest & WithName(Aws::String &&value)
void SetTags(const Aws::Vector< Tag > &value)
CreateRepositoryRequest & WithTags(Aws::Vector< Tag > &&value)
CreateRepositoryRequest & WithProvider(const RepositoryProvider &value)
CreateRepositoryRequest & WithEncryptionKey(const Aws::String &value)
CreateRepositoryRequest & AddTags(const Tag &value)
CreateRepositoryRequest & WithConnectionArn(const Aws::String &value)
CreateRepositoryRequest & WithEncryptionKey(Aws::String &&value)
AWS_PROTON_API Aws::String SerializePayload() const override
CreateRepositoryRequest & WithProvider(RepositoryProvider &&value)
CreateRepositoryRequest & WithConnectionArn(const char *value)
const RepositoryProvider & GetProvider() const
AWS_PROTON_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateRepositoryRequest & WithName(const char *value)
CreateRepositoryRequest & AddTags(Tag &&value)
virtual const char * GetServiceRequestName() const override
CreateRepositoryRequest & WithConnectionArn(Aws::String &&value)
void SetProvider(const RepositoryProvider &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