AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Repository.h
1
6#pragma once
7#include <aws/proton/Proton_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/proton/model/RepositoryProvider.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Proton
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_PROTON_API Repository();
37 AWS_PROTON_API Repository(Aws::Utils::Json::JsonView jsonValue);
39 AWS_PROTON_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetArn() const{ return m_arn; }
47 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
48 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
49 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
50 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
51 inline Repository& WithArn(const Aws::String& value) { SetArn(value); return *this;}
52 inline Repository& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
53 inline Repository& WithArn(const char* value) { SetArn(value); return *this;}
55
57
61 inline const Aws::String& GetConnectionArn() const{ return m_connectionArn; }
62 inline bool ConnectionArnHasBeenSet() const { return m_connectionArnHasBeenSet; }
63 inline void SetConnectionArn(const Aws::String& value) { m_connectionArnHasBeenSet = true; m_connectionArn = value; }
64 inline void SetConnectionArn(Aws::String&& value) { m_connectionArnHasBeenSet = true; m_connectionArn = std::move(value); }
65 inline void SetConnectionArn(const char* value) { m_connectionArnHasBeenSet = true; m_connectionArn.assign(value); }
66 inline Repository& WithConnectionArn(const Aws::String& value) { SetConnectionArn(value); return *this;}
67 inline Repository& WithConnectionArn(Aws::String&& value) { SetConnectionArn(std::move(value)); return *this;}
68 inline Repository& WithConnectionArn(const char* value) { SetConnectionArn(value); return *this;}
70
72
75 inline const Aws::String& GetEncryptionKey() const{ return m_encryptionKey; }
76 inline bool EncryptionKeyHasBeenSet() const { return m_encryptionKeyHasBeenSet; }
77 inline void SetEncryptionKey(const Aws::String& value) { m_encryptionKeyHasBeenSet = true; m_encryptionKey = value; }
78 inline void SetEncryptionKey(Aws::String&& value) { m_encryptionKeyHasBeenSet = true; m_encryptionKey = std::move(value); }
79 inline void SetEncryptionKey(const char* value) { m_encryptionKeyHasBeenSet = true; m_encryptionKey.assign(value); }
80 inline Repository& WithEncryptionKey(const Aws::String& value) { SetEncryptionKey(value); return *this;}
81 inline Repository& WithEncryptionKey(Aws::String&& value) { SetEncryptionKey(std::move(value)); return *this;}
82 inline Repository& WithEncryptionKey(const char* value) { SetEncryptionKey(value); return *this;}
84
86
89 inline const Aws::String& GetName() const{ return m_name; }
90 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
91 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
92 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
93 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
94 inline Repository& WithName(const Aws::String& value) { SetName(value); return *this;}
95 inline Repository& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
96 inline Repository& WithName(const char* value) { SetName(value); return *this;}
98
100
103 inline const RepositoryProvider& GetProvider() const{ return m_provider; }
104 inline bool ProviderHasBeenSet() const { return m_providerHasBeenSet; }
105 inline void SetProvider(const RepositoryProvider& value) { m_providerHasBeenSet = true; m_provider = value; }
106 inline void SetProvider(RepositoryProvider&& value) { m_providerHasBeenSet = true; m_provider = std::move(value); }
107 inline Repository& WithProvider(const RepositoryProvider& value) { SetProvider(value); return *this;}
108 inline Repository& WithProvider(RepositoryProvider&& value) { SetProvider(std::move(value)); return *this;}
110 private:
111
112 Aws::String m_arn;
113 bool m_arnHasBeenSet = false;
114
115 Aws::String m_connectionArn;
116 bool m_connectionArnHasBeenSet = false;
117
118 Aws::String m_encryptionKey;
119 bool m_encryptionKeyHasBeenSet = false;
120
121 Aws::String m_name;
122 bool m_nameHasBeenSet = false;
123
124 RepositoryProvider m_provider;
125 bool m_providerHasBeenSet = false;
126 };
127
128} // namespace Model
129} // namespace Proton
130} // namespace Aws
bool EncryptionKeyHasBeenSet() const
Definition Repository.h:76
void SetName(Aws::String &&value)
Definition Repository.h:92
void SetConnectionArn(const Aws::String &value)
Definition Repository.h:63
Repository & WithEncryptionKey(const char *value)
Definition Repository.h:82
void SetArn(const Aws::String &value)
Definition Repository.h:48
void SetConnectionArn(const char *value)
Definition Repository.h:65
const RepositoryProvider & GetProvider() const
Definition Repository.h:103
Repository & WithArn(const Aws::String &value)
Definition Repository.h:51
AWS_PROTON_API Aws::Utils::Json::JsonValue Jsonize() const
void SetArn(Aws::String &&value)
Definition Repository.h:49
Repository & WithConnectionArn(Aws::String &&value)
Definition Repository.h:67
void SetConnectionArn(Aws::String &&value)
Definition Repository.h:64
const Aws::String & GetName() const
Definition Repository.h:89
void SetName(const char *value)
Definition Repository.h:93
Repository & WithConnectionArn(const Aws::String &value)
Definition Repository.h:66
Repository & WithEncryptionKey(const Aws::String &value)
Definition Repository.h:80
const Aws::String & GetArn() const
Definition Repository.h:46
const Aws::String & GetEncryptionKey() const
Definition Repository.h:75
AWS_PROTON_API Repository(Aws::Utils::Json::JsonView jsonValue)
Repository & WithEncryptionKey(Aws::String &&value)
Definition Repository.h:81
Repository & WithProvider(RepositoryProvider &&value)
Definition Repository.h:108
const Aws::String & GetConnectionArn() const
Definition Repository.h:61
Repository & WithArn(const char *value)
Definition Repository.h:53
Repository & WithArn(Aws::String &&value)
Definition Repository.h:52
Repository & WithProvider(const RepositoryProvider &value)
Definition Repository.h:107
void SetEncryptionKey(const char *value)
Definition Repository.h:79
void SetName(const Aws::String &value)
Definition Repository.h:91
Repository & WithName(Aws::String &&value)
Definition Repository.h:95
void SetProvider(const RepositoryProvider &value)
Definition Repository.h:105
Repository & WithConnectionArn(const char *value)
Definition Repository.h:68
void SetProvider(RepositoryProvider &&value)
Definition Repository.h:106
Repository & WithName(const Aws::String &value)
Definition Repository.h:94
AWS_PROTON_API Repository & operator=(Aws::Utils::Json::JsonView jsonValue)
bool ConnectionArnHasBeenSet() const
Definition Repository.h:62
void SetEncryptionKey(Aws::String &&value)
Definition Repository.h:78
Repository & WithName(const char *value)
Definition Repository.h:96
void SetArn(const char *value)
Definition Repository.h:50
void SetEncryptionKey(const Aws::String &value)
Definition Repository.h:77
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue