AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }
48 inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::move(value); }
49 inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); }
50 inline Target& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;}
51 inline Target& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;}
52 inline Target& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
54
56
60 inline const Aws::String& GetSourceReference() const{ return m_sourceReference; }
61 inline bool SourceReferenceHasBeenSet() const { return m_sourceReferenceHasBeenSet; }
62 inline void SetSourceReference(const Aws::String& value) { m_sourceReferenceHasBeenSet = true; m_sourceReference = value; }
63 inline void SetSourceReference(Aws::String&& value) { m_sourceReferenceHasBeenSet = true; m_sourceReference = std::move(value); }
64 inline void SetSourceReference(const char* value) { m_sourceReferenceHasBeenSet = true; m_sourceReference.assign(value); }
65 inline Target& WithSourceReference(const Aws::String& value) { SetSourceReference(value); return *this;}
66 inline Target& WithSourceReference(Aws::String&& value) { SetSourceReference(std::move(value)); return *this;}
67 inline Target& WithSourceReference(const char* value) { SetSourceReference(value); return *this;}
69
71
75 inline const Aws::String& GetDestinationReference() const{ return m_destinationReference; }
76 inline bool DestinationReferenceHasBeenSet() const { return m_destinationReferenceHasBeenSet; }
77 inline void SetDestinationReference(const Aws::String& value) { m_destinationReferenceHasBeenSet = true; m_destinationReference = value; }
78 inline void SetDestinationReference(Aws::String&& value) { m_destinationReferenceHasBeenSet = true; m_destinationReference = std::move(value); }
79 inline void SetDestinationReference(const char* value) { m_destinationReferenceHasBeenSet = true; m_destinationReference.assign(value); }
80 inline Target& WithDestinationReference(const Aws::String& value) { SetDestinationReference(value); return *this;}
81 inline Target& WithDestinationReference(Aws::String&& value) { SetDestinationReference(std::move(value)); return *this;}
82 inline Target& WithDestinationReference(const char* value) { SetDestinationReference(value); return *this;}
84 private:
85
86 Aws::String m_repositoryName;
87 bool m_repositoryNameHasBeenSet = false;
88
89 Aws::String m_sourceReference;
90 bool m_sourceReferenceHasBeenSet = false;
91
92 Aws::String m_destinationReference;
93 bool m_destinationReferenceHasBeenSet = false;
94 };
95
96} // namespace Model
97} // namespace CodeCommit
98} // namespace Aws
AWS_CODECOMMIT_API Target()
void SetDestinationReference(const Aws::String &value)
Definition Target.h:77
Target & WithRepositoryName(Aws::String &&value)
Definition Target.h:51
bool DestinationReferenceHasBeenSet() const
Definition Target.h:76
const Aws::String & GetSourceReference() const
Definition Target.h:60
AWS_CODECOMMIT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetSourceReference(Aws::String &&value)
Definition Target.h:63
Target & WithDestinationReference(Aws::String &&value)
Definition Target.h:81
Target & WithDestinationReference(const char *value)
Definition Target.h:82
void SetDestinationReference(Aws::String &&value)
Definition Target.h:78
Target & WithSourceReference(const char *value)
Definition Target.h:67
void SetRepositoryName(const Aws::String &value)
Definition Target.h:47
void SetDestinationReference(const char *value)
Definition Target.h:79
const Aws::String & GetDestinationReference() const
Definition Target.h:75
Target & WithDestinationReference(const Aws::String &value)
Definition Target.h:80
void SetSourceReference(const char *value)
Definition Target.h:64
const Aws::String & GetRepositoryName() const
Definition Target.h:45
bool SourceReferenceHasBeenSet() const
Definition Target.h:61
AWS_CODECOMMIT_API Target & operator=(Aws::Utils::Json::JsonView jsonValue)
Target & WithSourceReference(Aws::String &&value)
Definition Target.h:66
void SetSourceReference(const Aws::String &value)
Definition Target.h:62
AWS_CODECOMMIT_API Target(Aws::Utils::Json::JsonView jsonValue)
void SetRepositoryName(const char *value)
Definition Target.h:49
Target & WithSourceReference(const Aws::String &value)
Definition Target.h:65
bool RepositoryNameHasBeenSet() const
Definition Target.h:46
void SetRepositoryName(Aws::String &&value)
Definition Target.h:48
Target & WithRepositoryName(const char *value)
Definition Target.h:52
Target & WithRepositoryName(const Aws::String &value)
Definition Target.h:50
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue