AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
SourceRevisionOverride.h
1
6#pragma once
7#include <aws/codepipeline/CodePipeline_EXPORTS.h>
8#include <aws/codepipeline/model/SourceRevisionType.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 CodePipeline {
21namespace Model {
22
35 public:
36 AWS_CODEPIPELINE_API SourceRevisionOverride() = default;
37 AWS_CODEPIPELINE_API SourceRevisionOverride(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CODEPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
45 inline const Aws::String& GetActionName() const { return m_actionName; }
46 inline bool ActionNameHasBeenSet() const { return m_actionNameHasBeenSet; }
47 template <typename ActionNameT = Aws::String>
48 void SetActionName(ActionNameT&& value) {
49 m_actionNameHasBeenSet = true;
50 m_actionName = std::forward<ActionNameT>(value);
51 }
52 template <typename ActionNameT = Aws::String>
53 SourceRevisionOverride& WithActionName(ActionNameT&& value) {
54 SetActionName(std::forward<ActionNameT>(value));
55 return *this;
56 }
58
60
64 inline SourceRevisionType GetRevisionType() const { return m_revisionType; }
65 inline bool RevisionTypeHasBeenSet() const { return m_revisionTypeHasBeenSet; }
67 m_revisionTypeHasBeenSet = true;
68 m_revisionType = value;
69 }
71 SetRevisionType(value);
72 return *this;
73 }
75
77
81 inline const Aws::String& GetRevisionValue() const { return m_revisionValue; }
82 inline bool RevisionValueHasBeenSet() const { return m_revisionValueHasBeenSet; }
83 template <typename RevisionValueT = Aws::String>
84 void SetRevisionValue(RevisionValueT&& value) {
85 m_revisionValueHasBeenSet = true;
86 m_revisionValue = std::forward<RevisionValueT>(value);
87 }
88 template <typename RevisionValueT = Aws::String>
89 SourceRevisionOverride& WithRevisionValue(RevisionValueT&& value) {
90 SetRevisionValue(std::forward<RevisionValueT>(value));
91 return *this;
92 }
94 private:
95 Aws::String m_actionName;
96
98
99 Aws::String m_revisionValue;
100 bool m_actionNameHasBeenSet = false;
101 bool m_revisionTypeHasBeenSet = false;
102 bool m_revisionValueHasBeenSet = false;
103};
104
105} // namespace Model
106} // namespace CodePipeline
107} // namespace Aws
SourceRevisionOverride & WithRevisionValue(RevisionValueT &&value)
SourceRevisionOverride & WithActionName(ActionNameT &&value)
SourceRevisionOverride & WithRevisionType(SourceRevisionType value)
AWS_CODEPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CODEPIPELINE_API SourceRevisionOverride()=default
AWS_CODEPIPELINE_API SourceRevisionOverride(Aws::Utils::Json::JsonView jsonValue)
AWS_CODEPIPELINE_API SourceRevisionOverride & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue