AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
SourceCodeVersion.h
1
6#pragma once
7#include <aws/apprunner/AppRunner_EXPORTS.h>
8#include <aws/apprunner/model/SourceCodeVersionType.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace AppRunner {
21namespace Model {
22
30 public:
31 AWS_APPRUNNER_API SourceCodeVersion() = default;
32 AWS_APPRUNNER_API SourceCodeVersion(Aws::Utils::Json::JsonView jsonValue);
34 AWS_APPRUNNER_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline SourceCodeVersionType GetType() const { return m_type; }
42 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
43 inline void SetType(SourceCodeVersionType value) {
44 m_typeHasBeenSet = true;
45 m_type = value;
46 }
48 SetType(value);
49 return *this;
50 }
52
54
58 inline const Aws::String& GetValue() const { return m_value; }
59 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
60 template <typename ValueT = Aws::String>
61 void SetValue(ValueT&& value) {
62 m_valueHasBeenSet = true;
63 m_value = std::forward<ValueT>(value);
64 }
65 template <typename ValueT = Aws::String>
66 SourceCodeVersion& WithValue(ValueT&& value) {
67 SetValue(std::forward<ValueT>(value));
68 return *this;
69 }
71 private:
73
74 Aws::String m_value;
75 bool m_typeHasBeenSet = false;
76 bool m_valueHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace AppRunner
81} // namespace Aws
SourceCodeVersion & WithValue(ValueT &&value)
SourceCodeVersion & WithType(SourceCodeVersionType value)
AWS_APPRUNNER_API SourceCodeVersion()=default
void SetType(SourceCodeVersionType value)
AWS_APPRUNNER_API SourceCodeVersion & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_APPRUNNER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_APPRUNNER_API SourceCodeVersion(Aws::Utils::Json::JsonView jsonValue)
SourceCodeVersionType GetType() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue