AWS SDK for C++  1.8.152
AWS SDK for C++
RepositoryNameIdPair.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace CodeCommit
22 {
23 namespace Model
24 {
25 
32  {
33  public:
38 
39 
43  inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; }
44 
48  inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
49 
53  inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }
54 
58  inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::move(value); }
59 
63  inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); }
64 
68  inline RepositoryNameIdPair& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;}
69 
73  inline RepositoryNameIdPair& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;}
74 
78  inline RepositoryNameIdPair& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
79 
80 
84  inline const Aws::String& GetRepositoryId() const{ return m_repositoryId; }
85 
89  inline bool RepositoryIdHasBeenSet() const { return m_repositoryIdHasBeenSet; }
90 
94  inline void SetRepositoryId(const Aws::String& value) { m_repositoryIdHasBeenSet = true; m_repositoryId = value; }
95 
99  inline void SetRepositoryId(Aws::String&& value) { m_repositoryIdHasBeenSet = true; m_repositoryId = std::move(value); }
100 
104  inline void SetRepositoryId(const char* value) { m_repositoryIdHasBeenSet = true; m_repositoryId.assign(value); }
105 
109  inline RepositoryNameIdPair& WithRepositoryId(const Aws::String& value) { SetRepositoryId(value); return *this;}
110 
114  inline RepositoryNameIdPair& WithRepositoryId(Aws::String&& value) { SetRepositoryId(std::move(value)); return *this;}
115 
119  inline RepositoryNameIdPair& WithRepositoryId(const char* value) { SetRepositoryId(value); return *this;}
120 
121  private:
122 
123  Aws::String m_repositoryName;
124  bool m_repositoryNameHasBeenSet;
125 
126  Aws::String m_repositoryId;
127  bool m_repositoryIdHasBeenSet;
128  };
129 
130 } // namespace Model
131 } // namespace CodeCommit
132 } // namespace Aws
Aws::CodeCommit::Model::RepositoryNameIdPair::RepositoryNameIdPair
RepositoryNameIdPair(Aws::Utils::Json::JsonView jsonValue)
CodeCommit_EXPORTS.h
Aws::CodeCommit::Model::RepositoryNameIdPair::WithRepositoryId
RepositoryNameIdPair & WithRepositoryId(const Aws::String &value)
Definition: RepositoryNameIdPair.h:109
Aws::CodeCommit::Model::RepositoryNameIdPair::SetRepositoryId
void SetRepositoryId(const char *value)
Definition: RepositoryNameIdPair.h:104
Aws::CodeCommit::Model::RepositoryNameIdPair::RepositoryNameHasBeenSet
bool RepositoryNameHasBeenSet() const
Definition: RepositoryNameIdPair.h:48
Aws::CodeCommit::Model::RepositoryNameIdPair::SetRepositoryId
void SetRepositoryId(const Aws::String &value)
Definition: RepositoryNameIdPair.h:94
Aws::CodeCommit::Model::RepositoryNameIdPair::SetRepositoryName
void SetRepositoryName(Aws::String &&value)
Definition: RepositoryNameIdPair.h:58
Aws::CodeCommit::Model::RepositoryNameIdPair::SetRepositoryName
void SetRepositoryName(const char *value)
Definition: RepositoryNameIdPair.h:63
Aws::CodeCommit::Model::RepositoryNameIdPair::GetRepositoryName
const Aws::String & GetRepositoryName() const
Definition: RepositoryNameIdPair.h:43
Aws::CodeCommit::Model::RepositoryNameIdPair::SetRepositoryId
void SetRepositoryId(Aws::String &&value)
Definition: RepositoryNameIdPair.h:99
Aws::CodeCommit::Model::RepositoryNameIdPair::operator=
RepositoryNameIdPair & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::CodeCommit::Model::RepositoryNameIdPair::SetRepositoryName
void SetRepositoryName(const Aws::String &value)
Definition: RepositoryNameIdPair.h:53
Aws::CodeCommit::Model::RepositoryNameIdPair::RepositoryIdHasBeenSet
bool RepositoryIdHasBeenSet() const
Definition: RepositoryNameIdPair.h:89
Aws::CodeCommit::Model::RepositoryNameIdPair::WithRepositoryName
RepositoryNameIdPair & WithRepositoryName(const char *value)
Definition: RepositoryNameIdPair.h:78
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
AWS_CODECOMMIT_API
#define AWS_CODECOMMIT_API
Definition: CodeCommit_EXPORTS.h:28
Aws::CodeCommit::Model::RepositoryNameIdPair::WithRepositoryName
RepositoryNameIdPair & WithRepositoryName(Aws::String &&value)
Definition: RepositoryNameIdPair.h:73
Aws::CodeCommit::Model::RepositoryNameIdPair::WithRepositoryName
RepositoryNameIdPair & WithRepositoryName(const Aws::String &value)
Definition: RepositoryNameIdPair.h:68
Aws
Definition: AccessManagementClient.h:15
Aws::CodeCommit::Model::RepositoryNameIdPair::WithRepositoryId
RepositoryNameIdPair & WithRepositoryId(const char *value)
Definition: RepositoryNameIdPair.h:119
Aws::CodeCommit::Model::RepositoryNameIdPair::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CodeCommit::Model::RepositoryNameIdPair::GetRepositoryId
const Aws::String & GetRepositoryId() const
Definition: RepositoryNameIdPair.h:84
Aws::CodeCommit::Model::RepositoryNameIdPair
Definition: RepositoryNameIdPair.h:32
Aws::CodeCommit::Model::RepositoryNameIdPair::WithRepositoryId
RepositoryNameIdPair & WithRepositoryId(Aws::String &&value)
Definition: RepositoryNameIdPair.h:114
Aws::CodeCommit::Model::RepositoryNameIdPair::RepositoryNameIdPair
RepositoryNameIdPair()