AWS SDK for C++

AWS SDK for C++ Version 1.11.866

Loading...
Searching...
No Matches
DescriptorSourceFromUrl.h
1
6#pragma once
7#include <aws/agent-registry-control/AgentRegistryControl_EXPORTS.h>
8#include <aws/agent-registry-control/model/RegistryRecordCredentialProviderConfiguration.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace AgentRegistryControl {
22namespace Model {
23
31 public:
32 AWS_AGENTREGISTRYCONTROL_API DescriptorSourceFromUrl() = default;
33 AWS_AGENTREGISTRYCONTROL_API DescriptorSourceFromUrl(Aws::Utils::Json::JsonView jsonValue);
34 AWS_AGENTREGISTRYCONTROL_API DescriptorSourceFromUrl& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_AGENTREGISTRYCONTROL_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetUrl() const { return m_url; }
42 inline bool UrlHasBeenSet() const { return m_urlHasBeenSet; }
43 template <typename UrlT = Aws::String>
44 void SetUrl(UrlT&& value) {
45 m_urlHasBeenSet = true;
46 m_url = std::forward<UrlT>(value);
47 }
48 template <typename UrlT = Aws::String>
50 SetUrl(std::forward<UrlT>(value));
51 return *this;
52 }
54
56
61 return m_credentialProviderConfigurations;
62 }
63 inline bool CredentialProviderConfigurationsHasBeenSet() const { return m_credentialProviderConfigurationsHasBeenSet; }
64 template <typename CredentialProviderConfigurationsT = Aws::Vector<RegistryRecordCredentialProviderConfiguration>>
65 void SetCredentialProviderConfigurations(CredentialProviderConfigurationsT&& value) {
66 m_credentialProviderConfigurationsHasBeenSet = true;
67 m_credentialProviderConfigurations = std::forward<CredentialProviderConfigurationsT>(value);
68 }
69 template <typename CredentialProviderConfigurationsT = Aws::Vector<RegistryRecordCredentialProviderConfiguration>>
70 DescriptorSourceFromUrl& WithCredentialProviderConfigurations(CredentialProviderConfigurationsT&& value) {
71 SetCredentialProviderConfigurations(std::forward<CredentialProviderConfigurationsT>(value));
72 return *this;
73 }
74 template <typename CredentialProviderConfigurationsT = RegistryRecordCredentialProviderConfiguration>
75 DescriptorSourceFromUrl& AddCredentialProviderConfigurations(CredentialProviderConfigurationsT&& value) {
76 m_credentialProviderConfigurationsHasBeenSet = true;
77 m_credentialProviderConfigurations.emplace_back(std::forward<CredentialProviderConfigurationsT>(value));
78 return *this;
79 }
81 private:
82 Aws::String m_url;
83
84 Aws::Vector<RegistryRecordCredentialProviderConfiguration> m_credentialProviderConfigurations;
85 bool m_urlHasBeenSet = false;
86 bool m_credentialProviderConfigurationsHasBeenSet = false;
87};
88
89} // namespace Model
90} // namespace AgentRegistryControl
91} // namespace Aws
AWS_AGENTREGISTRYCONTROL_API Aws::Utils::Json::JsonValue Jsonize() const
DescriptorSourceFromUrl & WithCredentialProviderConfigurations(CredentialProviderConfigurationsT &&value)
void SetCredentialProviderConfigurations(CredentialProviderConfigurationsT &&value)
DescriptorSourceFromUrl & AddCredentialProviderConfigurations(CredentialProviderConfigurationsT &&value)
AWS_AGENTREGISTRYCONTROL_API DescriptorSourceFromUrl()=default
AWS_AGENTREGISTRYCONTROL_API DescriptorSourceFromUrl & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_AGENTREGISTRYCONTROL_API DescriptorSourceFromUrl(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< RegistryRecordCredentialProviderConfiguration > & GetCredentialProviderConfigurations() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue