AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace CodeCommit
22{
23namespace Model
24{
25
32 class Target
33 {
34 public:
35 AWS_CODECOMMIT_API Target() = default;
36 AWS_CODECOMMIT_API Target(Aws::Utils::Json::JsonView jsonValue);
37 AWS_CODECOMMIT_API Target& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CODECOMMIT_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetRepositoryName() const { return m_repositoryName; }
46 inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
47 template<typename RepositoryNameT = Aws::String>
48 void SetRepositoryName(RepositoryNameT&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::forward<RepositoryNameT>(value); }
49 template<typename RepositoryNameT = Aws::String>
50 Target& WithRepositoryName(RepositoryNameT&& value) { SetRepositoryName(std::forward<RepositoryNameT>(value)); return *this;}
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) { m_sourceReferenceHasBeenSet = true; m_sourceReference = std::forward<SourceReferenceT>(value); }
62 template<typename SourceReferenceT = Aws::String>
63 Target& WithSourceReference(SourceReferenceT&& value) { SetSourceReference(std::forward<SourceReferenceT>(value)); return *this;}
65
67
71 inline const Aws::String& GetDestinationReference() const { return m_destinationReference; }
72 inline bool DestinationReferenceHasBeenSet() const { return m_destinationReferenceHasBeenSet; }
73 template<typename DestinationReferenceT = Aws::String>
74 void SetDestinationReference(DestinationReferenceT&& value) { m_destinationReferenceHasBeenSet = true; m_destinationReference = std::forward<DestinationReferenceT>(value); }
75 template<typename DestinationReferenceT = Aws::String>
76 Target& WithDestinationReference(DestinationReferenceT&& value) { SetDestinationReference(std::forward<DestinationReferenceT>(value)); return *this;}
78 private:
79
80 Aws::String m_repositoryName;
81 bool m_repositoryNameHasBeenSet = false;
82
83 Aws::String m_sourceReference;
84 bool m_sourceReferenceHasBeenSet = false;
85
86 Aws::String m_destinationReference;
87 bool m_destinationReferenceHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace CodeCommit
92} // namespace Aws
void SetRepositoryName(RepositoryNameT &&value)
Definition Target.h:48
bool DestinationReferenceHasBeenSet() const
Definition Target.h:72
Target & WithSourceReference(SourceReferenceT &&value)
Definition Target.h:63
Target & WithRepositoryName(RepositoryNameT &&value)
Definition Target.h:50
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:71
Target & WithDestinationReference(DestinationReferenceT &&value)
Definition Target.h:76
AWS_CODECOMMIT_API Target()=default
void SetDestinationReference(DestinationReferenceT &&value)
Definition Target.h:74
const Aws::String & GetRepositoryName() const
Definition Target.h:45
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:46
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue