AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
CurrentRevision.h
1
6#pragma once
7#include <aws/codepipeline/CodePipeline_EXPORTS.h>
8#include <aws/core/utils/DateTime.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
30 public:
31 AWS_CODEPIPELINE_API CurrentRevision() = default;
32 AWS_CODEPIPELINE_API CurrentRevision(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CODEPIPELINE_API CurrentRevision& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CODEPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetRevision() const { return m_revision; }
41 inline bool RevisionHasBeenSet() const { return m_revisionHasBeenSet; }
42 template <typename RevisionT = Aws::String>
43 void SetRevision(RevisionT&& value) {
44 m_revisionHasBeenSet = true;
45 m_revision = std::forward<RevisionT>(value);
46 }
47 template <typename RevisionT = Aws::String>
48 CurrentRevision& WithRevision(RevisionT&& value) {
49 SetRevision(std::forward<RevisionT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetChangeIdentifier() const { return m_changeIdentifier; }
59 inline bool ChangeIdentifierHasBeenSet() const { return m_changeIdentifierHasBeenSet; }
60 template <typename ChangeIdentifierT = Aws::String>
61 void SetChangeIdentifier(ChangeIdentifierT&& value) {
62 m_changeIdentifierHasBeenSet = true;
63 m_changeIdentifier = std::forward<ChangeIdentifierT>(value);
64 }
65 template <typename ChangeIdentifierT = Aws::String>
66 CurrentRevision& WithChangeIdentifier(ChangeIdentifierT&& value) {
67 SetChangeIdentifier(std::forward<ChangeIdentifierT>(value));
68 return *this;
69 }
71
73
77 inline const Aws::Utils::DateTime& GetCreated() const { return m_created; }
78 inline bool CreatedHasBeenSet() const { return m_createdHasBeenSet; }
79 template <typename CreatedT = Aws::Utils::DateTime>
80 void SetCreated(CreatedT&& value) {
81 m_createdHasBeenSet = true;
82 m_created = std::forward<CreatedT>(value);
83 }
84 template <typename CreatedT = Aws::Utils::DateTime>
85 CurrentRevision& WithCreated(CreatedT&& value) {
86 SetCreated(std::forward<CreatedT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::String& GetRevisionSummary() const { return m_revisionSummary; }
96 inline bool RevisionSummaryHasBeenSet() const { return m_revisionSummaryHasBeenSet; }
97 template <typename RevisionSummaryT = Aws::String>
98 void SetRevisionSummary(RevisionSummaryT&& value) {
99 m_revisionSummaryHasBeenSet = true;
100 m_revisionSummary = std::forward<RevisionSummaryT>(value);
101 }
102 template <typename RevisionSummaryT = Aws::String>
103 CurrentRevision& WithRevisionSummary(RevisionSummaryT&& value) {
104 SetRevisionSummary(std::forward<RevisionSummaryT>(value));
105 return *this;
106 }
108 private:
109 Aws::String m_revision;
110
111 Aws::String m_changeIdentifier;
112
113 Aws::Utils::DateTime m_created{};
114
115 Aws::String m_revisionSummary;
116 bool m_revisionHasBeenSet = false;
117 bool m_changeIdentifierHasBeenSet = false;
118 bool m_createdHasBeenSet = false;
119 bool m_revisionSummaryHasBeenSet = false;
120};
121
122} // namespace Model
123} // namespace CodePipeline
124} // namespace Aws
const Aws::Utils::DateTime & GetCreated() const
CurrentRevision & WithChangeIdentifier(ChangeIdentifierT &&value)
const Aws::String & GetRevision() const
const Aws::String & GetChangeIdentifier() const
const Aws::String & GetRevisionSummary() const
void SetChangeIdentifier(ChangeIdentifierT &&value)
AWS_CODEPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const
CurrentRevision & WithRevision(RevisionT &&value)
void SetRevisionSummary(RevisionSummaryT &&value)
CurrentRevision & WithRevisionSummary(RevisionSummaryT &&value)
AWS_CODEPIPELINE_API CurrentRevision & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CODEPIPELINE_API CurrentRevision(Aws::Utils::Json::JsonView jsonValue)
AWS_CODEPIPELINE_API CurrentRevision()=default
CurrentRevision & WithCreated(CreatedT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue