AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
Target.h
1
6#pragma once
7#include <aws/codecommit/CodeCommit_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 CodeCommit {
20namespace Model {
21
28class Target {
29 public:
30 AWS_CODECOMMIT_API Target() = default;
31 AWS_CODECOMMIT_API Target(Aws::Utils::Json::JsonView jsonValue);
32 AWS_CODECOMMIT_API Target& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CODECOMMIT_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetRepositoryName() const { return m_repositoryName; }
40 inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
41 template <typename RepositoryNameT = Aws::String>
42 void SetRepositoryName(RepositoryNameT&& value) {
43 m_repositoryNameHasBeenSet = true;
44 m_repositoryName = std::forward<RepositoryNameT>(value);
45 }
46 template <typename RepositoryNameT = Aws::String>
47 Target& WithRepositoryName(RepositoryNameT&& value) {
48 SetRepositoryName(std::forward<RepositoryNameT>(value));
49 return *this;
50 }
52
54
58 inline const Aws::String& GetSourceReference() const { return m_sourceReference; }
59 inline bool SourceReferenceHasBeenSet() const { return m_sourceReferenceHasBeenSet; }
60 template <typename SourceReferenceT = Aws::String>
61 void SetSourceReference(SourceReferenceT&& value) {
62 m_sourceReferenceHasBeenSet = true;
63 m_sourceReference = std::forward<SourceReferenceT>(value);
64 }
65 template <typename SourceReferenceT = Aws::String>
66 Target& WithSourceReference(SourceReferenceT&& value) {
67 SetSourceReference(std::forward<SourceReferenceT>(value));
68 return *this;
69 }
71
73
77 inline const Aws::String& GetDestinationReference() const { return m_destinationReference; }
78 inline bool DestinationReferenceHasBeenSet() const { return m_destinationReferenceHasBeenSet; }
79 template <typename DestinationReferenceT = Aws::String>
80 void SetDestinationReference(DestinationReferenceT&& value) {
81 m_destinationReferenceHasBeenSet = true;
82 m_destinationReference = std::forward<DestinationReferenceT>(value);
83 }
84 template <typename DestinationReferenceT = Aws::String>
85 Target& WithDestinationReference(DestinationReferenceT&& value) {
86 SetDestinationReference(std::forward<DestinationReferenceT>(value));
87 return *this;
88 }
90 private:
91 Aws::String m_repositoryName;
92
93 Aws::String m_sourceReference;
94
95 Aws::String m_destinationReference;
96 bool m_repositoryNameHasBeenSet = false;
97 bool m_sourceReferenceHasBeenSet = false;
98 bool m_destinationReferenceHasBeenSet = false;
99};
100
101} // namespace Model
102} // namespace CodeCommit
103} // namespace Aws
void SetRepositoryName(RepositoryNameT &&value)
Definition Target.h:42
bool DestinationReferenceHasBeenSet() const
Definition Target.h:78
Target & WithSourceReference(SourceReferenceT &&value)
Definition Target.h:66
Target & WithRepositoryName(RepositoryNameT &&value)
Definition Target.h:47
const Aws::String & GetSourceReference() const
Definition Target.h:58
AWS_CODECOMMIT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetSourceReference(SourceReferenceT &&value)
Definition Target.h:61
const Aws::String & GetDestinationReference() const
Definition Target.h:77
Target & WithDestinationReference(DestinationReferenceT &&value)
Definition Target.h:85
AWS_CODECOMMIT_API Target()=default
void SetDestinationReference(DestinationReferenceT &&value)
Definition Target.h:80
const Aws::String & GetRepositoryName() const
Definition Target.h:39
bool SourceReferenceHasBeenSet() const
Definition Target.h:59
AWS_CODECOMMIT_API Target & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CODECOMMIT_API Target(Aws::Utils::Json::JsonView jsonValue)
bool RepositoryNameHasBeenSet() const
Definition Target.h:40
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue