AWS SDK for C++

AWS SDK for C++ Version 1.11.742

Loading...
Searching...
No Matches
RepositoryNameIdPair.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
28 public:
29 AWS_CODECOMMIT_API RepositoryNameIdPair() = default;
30 AWS_CODECOMMIT_API RepositoryNameIdPair(Aws::Utils::Json::JsonView jsonValue);
32 AWS_CODECOMMIT_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline const Aws::String& GetRepositoryName() const { return m_repositoryName; }
39 inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
40 template <typename RepositoryNameT = Aws::String>
41 void SetRepositoryName(RepositoryNameT&& value) {
42 m_repositoryNameHasBeenSet = true;
43 m_repositoryName = std::forward<RepositoryNameT>(value);
44 }
45 template <typename RepositoryNameT = Aws::String>
46 RepositoryNameIdPair& WithRepositoryName(RepositoryNameT&& value) {
47 SetRepositoryName(std::forward<RepositoryNameT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetRepositoryId() const { return m_repositoryId; }
57 inline bool RepositoryIdHasBeenSet() const { return m_repositoryIdHasBeenSet; }
58 template <typename RepositoryIdT = Aws::String>
59 void SetRepositoryId(RepositoryIdT&& value) {
60 m_repositoryIdHasBeenSet = true;
61 m_repositoryId = std::forward<RepositoryIdT>(value);
62 }
63 template <typename RepositoryIdT = Aws::String>
64 RepositoryNameIdPair& WithRepositoryId(RepositoryIdT&& value) {
65 SetRepositoryId(std::forward<RepositoryIdT>(value));
66 return *this;
67 }
69 private:
70 Aws::String m_repositoryName;
71
72 Aws::String m_repositoryId;
73 bool m_repositoryNameHasBeenSet = false;
74 bool m_repositoryIdHasBeenSet = false;
75};
76
77} // namespace Model
78} // namespace CodeCommit
79} // namespace Aws
RepositoryNameIdPair & WithRepositoryName(RepositoryNameT &&value)
AWS_CODECOMMIT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CODECOMMIT_API RepositoryNameIdPair & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CODECOMMIT_API RepositoryNameIdPair(Aws::Utils::Json::JsonView jsonValue)
AWS_CODECOMMIT_API RepositoryNameIdPair()=default
RepositoryNameIdPair & WithRepositoryId(RepositoryIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue