AWS SDK for C++

AWS SDK for C++ Version 1.11.922

Loading...
Searching...
No Matches
EnvironmentSourceConfiguration.h
1
6#pragma once
7#include <aws/continuum/Continuum_EXPORTS.h>
8#include <aws/continuum/model/EnvironmentRepositorySource.h>
9#include <aws/continuum/model/EnvironmentS3IntegrationSource.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 Continuum {
22namespace Model {
23
31 public:
32 AWS_CONTINUUM_API EnvironmentSourceConfiguration() = default;
35 AWS_CONTINUUM_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::Vector<EnvironmentS3IntegrationSource>& GetS3Sources() const { return m_s3Sources; }
42 inline bool S3SourcesHasBeenSet() const { return m_s3SourcesHasBeenSet; }
43 template <typename S3SourcesT = Aws::Vector<EnvironmentS3IntegrationSource>>
44 void SetS3Sources(S3SourcesT&& value) {
45 m_s3SourcesHasBeenSet = true;
46 m_s3Sources = std::forward<S3SourcesT>(value);
47 }
48 template <typename S3SourcesT = Aws::Vector<EnvironmentS3IntegrationSource>>
50 SetS3Sources(std::forward<S3SourcesT>(value));
51 return *this;
52 }
53 template <typename S3SourcesT = EnvironmentS3IntegrationSource>
55 m_s3SourcesHasBeenSet = true;
56 m_s3Sources.emplace_back(std::forward<S3SourcesT>(value));
57 return *this;
58 }
60
62
65 inline const Aws::Vector<EnvironmentRepositorySource>& GetRepositorySources() const { return m_repositorySources; }
66 inline bool RepositorySourcesHasBeenSet() const { return m_repositorySourcesHasBeenSet; }
67 template <typename RepositorySourcesT = Aws::Vector<EnvironmentRepositorySource>>
68 void SetRepositorySources(RepositorySourcesT&& value) {
69 m_repositorySourcesHasBeenSet = true;
70 m_repositorySources = std::forward<RepositorySourcesT>(value);
71 }
72 template <typename RepositorySourcesT = Aws::Vector<EnvironmentRepositorySource>>
74 SetRepositorySources(std::forward<RepositorySourcesT>(value));
75 return *this;
76 }
77 template <typename RepositorySourcesT = EnvironmentRepositorySource>
79 m_repositorySourcesHasBeenSet = true;
80 m_repositorySources.emplace_back(std::forward<RepositorySourcesT>(value));
81 return *this;
82 }
84 private:
86
88 bool m_s3SourcesHasBeenSet = false;
89 bool m_repositorySourcesHasBeenSet = false;
90};
91
92} // namespace Model
93} // namespace Continuum
94} // namespace Aws
AWS_CONTINUUM_API EnvironmentSourceConfiguration()=default
EnvironmentSourceConfiguration & AddRepositorySources(RepositorySourcesT &&value)
const Aws::Vector< EnvironmentRepositorySource > & GetRepositorySources() const
EnvironmentSourceConfiguration & AddS3Sources(S3SourcesT &&value)
EnvironmentSourceConfiguration & WithS3Sources(S3SourcesT &&value)
EnvironmentSourceConfiguration & WithRepositorySources(RepositorySourcesT &&value)
AWS_CONTINUUM_API EnvironmentSourceConfiguration(Aws::Utils::Json::JsonView jsonValue)
AWS_CONTINUUM_API EnvironmentSourceConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CONTINUUM_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< EnvironmentS3IntegrationSource > & GetS3Sources() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue