AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ProjectSourceVersion.h
1
6#pragma once
7#include <aws/codebuild/CodeBuild_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace CodeBuild {
20namespace Model {
21
29 public:
30 AWS_CODEBUILD_API ProjectSourceVersion() = default;
33 AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
41 inline const Aws::String& GetSourceIdentifier() const { return m_sourceIdentifier; }
42 inline bool SourceIdentifierHasBeenSet() const { return m_sourceIdentifierHasBeenSet; }
43 template <typename SourceIdentifierT = Aws::String>
44 void SetSourceIdentifier(SourceIdentifierT&& value) {
45 m_sourceIdentifierHasBeenSet = true;
46 m_sourceIdentifier = std::forward<SourceIdentifierT>(value);
47 }
48 template <typename SourceIdentifierT = Aws::String>
49 ProjectSourceVersion& WithSourceIdentifier(SourceIdentifierT&& value) {
50 SetSourceIdentifier(std::forward<SourceIdentifierT>(value));
51 return *this;
52 }
54
56
75 inline const Aws::String& GetSourceVersion() const { return m_sourceVersion; }
76 inline bool SourceVersionHasBeenSet() const { return m_sourceVersionHasBeenSet; }
77 template <typename SourceVersionT = Aws::String>
78 void SetSourceVersion(SourceVersionT&& value) {
79 m_sourceVersionHasBeenSet = true;
80 m_sourceVersion = std::forward<SourceVersionT>(value);
81 }
82 template <typename SourceVersionT = Aws::String>
83 ProjectSourceVersion& WithSourceVersion(SourceVersionT&& value) {
84 SetSourceVersion(std::forward<SourceVersionT>(value));
85 return *this;
86 }
88 private:
89 Aws::String m_sourceIdentifier;
90
91 Aws::String m_sourceVersion;
92 bool m_sourceIdentifierHasBeenSet = false;
93 bool m_sourceVersionHasBeenSet = false;
94};
95
96} // namespace Model
97} // namespace CodeBuild
98} // namespace Aws
AWS_CODEBUILD_API ProjectSourceVersion()=default
ProjectSourceVersion & WithSourceIdentifier(SourceIdentifierT &&value)
AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CODEBUILD_API ProjectSourceVersion(Aws::Utils::Json::JsonView jsonValue)
ProjectSourceVersion & WithSourceVersion(SourceVersionT &&value)
void SetSourceIdentifier(SourceIdentifierT &&value)
AWS_CODEBUILD_API ProjectSourceVersion & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue