AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CodeRepository.h
1
6#pragma once
7#include <aws/apprunner/AppRunner_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/apprunner/model/SourceCodeVersion.h>
10#include <aws/apprunner/model/CodeConfiguration.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace AppRunner
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_APPRUNNER_API CodeRepository();
37 AWS_APPRUNNER_API CodeRepository(Aws::Utils::Json::JsonView jsonValue);
39 AWS_APPRUNNER_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetRepositoryUrl() const{ return m_repositoryUrl; }
47 inline bool RepositoryUrlHasBeenSet() const { return m_repositoryUrlHasBeenSet; }
48 inline void SetRepositoryUrl(const Aws::String& value) { m_repositoryUrlHasBeenSet = true; m_repositoryUrl = value; }
49 inline void SetRepositoryUrl(Aws::String&& value) { m_repositoryUrlHasBeenSet = true; m_repositoryUrl = std::move(value); }
50 inline void SetRepositoryUrl(const char* value) { m_repositoryUrlHasBeenSet = true; m_repositoryUrl.assign(value); }
51 inline CodeRepository& WithRepositoryUrl(const Aws::String& value) { SetRepositoryUrl(value); return *this;}
52 inline CodeRepository& WithRepositoryUrl(Aws::String&& value) { SetRepositoryUrl(std::move(value)); return *this;}
53 inline CodeRepository& WithRepositoryUrl(const char* value) { SetRepositoryUrl(value); return *this;}
55
57
60 inline const SourceCodeVersion& GetSourceCodeVersion() const{ return m_sourceCodeVersion; }
61 inline bool SourceCodeVersionHasBeenSet() const { return m_sourceCodeVersionHasBeenSet; }
62 inline void SetSourceCodeVersion(const SourceCodeVersion& value) { m_sourceCodeVersionHasBeenSet = true; m_sourceCodeVersion = value; }
63 inline void SetSourceCodeVersion(SourceCodeVersion&& value) { m_sourceCodeVersionHasBeenSet = true; m_sourceCodeVersion = std::move(value); }
64 inline CodeRepository& WithSourceCodeVersion(const SourceCodeVersion& value) { SetSourceCodeVersion(value); return *this;}
65 inline CodeRepository& WithSourceCodeVersion(SourceCodeVersion&& value) { SetSourceCodeVersion(std::move(value)); return *this;}
67
69
74 inline const CodeConfiguration& GetCodeConfiguration() const{ return m_codeConfiguration; }
75 inline bool CodeConfigurationHasBeenSet() const { return m_codeConfigurationHasBeenSet; }
76 inline void SetCodeConfiguration(const CodeConfiguration& value) { m_codeConfigurationHasBeenSet = true; m_codeConfiguration = value; }
77 inline void SetCodeConfiguration(CodeConfiguration&& value) { m_codeConfigurationHasBeenSet = true; m_codeConfiguration = std::move(value); }
78 inline CodeRepository& WithCodeConfiguration(const CodeConfiguration& value) { SetCodeConfiguration(value); return *this;}
79 inline CodeRepository& WithCodeConfiguration(CodeConfiguration&& value) { SetCodeConfiguration(std::move(value)); return *this;}
81
83
88 inline const Aws::String& GetSourceDirectory() const{ return m_sourceDirectory; }
89 inline bool SourceDirectoryHasBeenSet() const { return m_sourceDirectoryHasBeenSet; }
90 inline void SetSourceDirectory(const Aws::String& value) { m_sourceDirectoryHasBeenSet = true; m_sourceDirectory = value; }
91 inline void SetSourceDirectory(Aws::String&& value) { m_sourceDirectoryHasBeenSet = true; m_sourceDirectory = std::move(value); }
92 inline void SetSourceDirectory(const char* value) { m_sourceDirectoryHasBeenSet = true; m_sourceDirectory.assign(value); }
93 inline CodeRepository& WithSourceDirectory(const Aws::String& value) { SetSourceDirectory(value); return *this;}
94 inline CodeRepository& WithSourceDirectory(Aws::String&& value) { SetSourceDirectory(std::move(value)); return *this;}
95 inline CodeRepository& WithSourceDirectory(const char* value) { SetSourceDirectory(value); return *this;}
97 private:
98
99 Aws::String m_repositoryUrl;
100 bool m_repositoryUrlHasBeenSet = false;
101
102 SourceCodeVersion m_sourceCodeVersion;
103 bool m_sourceCodeVersionHasBeenSet = false;
104
105 CodeConfiguration m_codeConfiguration;
106 bool m_codeConfigurationHasBeenSet = false;
107
108 Aws::String m_sourceDirectory;
109 bool m_sourceDirectoryHasBeenSet = false;
110 };
111
112} // namespace Model
113} // namespace AppRunner
114} // namespace Aws
CodeRepository & WithRepositoryUrl(Aws::String &&value)
void SetRepositoryUrl(Aws::String &&value)
void SetSourceDirectory(const Aws::String &value)
AWS_APPRUNNER_API Aws::Utils::Json::JsonValue Jsonize() const
CodeRepository & WithRepositoryUrl(const Aws::String &value)
AWS_APPRUNNER_API CodeRepository(Aws::Utils::Json::JsonView jsonValue)
AWS_APPRUNNER_API CodeRepository & operator=(Aws::Utils::Json::JsonView jsonValue)
CodeRepository & WithSourceCodeVersion(SourceCodeVersion &&value)
CodeRepository & WithSourceDirectory(Aws::String &&value)
CodeRepository & WithSourceDirectory(const Aws::String &value)
CodeRepository & WithCodeConfiguration(const CodeConfiguration &value)
void SetCodeConfiguration(CodeConfiguration &&value)
CodeRepository & WithRepositoryUrl(const char *value)
void SetSourceDirectory(const char *value)
const CodeConfiguration & GetCodeConfiguration() const
CodeRepository & WithCodeConfiguration(CodeConfiguration &&value)
void SetSourceDirectory(Aws::String &&value)
void SetCodeConfiguration(const CodeConfiguration &value)
void SetRepositoryUrl(const char *value)
const Aws::String & GetRepositoryUrl() const
void SetRepositoryUrl(const Aws::String &value)
CodeRepository & WithSourceDirectory(const char *value)
const SourceCodeVersion & GetSourceCodeVersion() const
CodeRepository & WithSourceCodeVersion(const SourceCodeVersion &value)
void SetSourceCodeVersion(const SourceCodeVersion &value)
void SetSourceCodeVersion(SourceCodeVersion &&value)
const Aws::String & GetSourceDirectory() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue