AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SubModule.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
33 {
34 public:
35 AWS_CODECOMMIT_API SubModule();
36 AWS_CODECOMMIT_API SubModule(Aws::Utils::Json::JsonView jsonValue);
37 AWS_CODECOMMIT_API SubModule& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CODECOMMIT_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetCommitId() const{ return m_commitId; }
46 inline bool CommitIdHasBeenSet() const { return m_commitIdHasBeenSet; }
47 inline void SetCommitId(const Aws::String& value) { m_commitIdHasBeenSet = true; m_commitId = value; }
48 inline void SetCommitId(Aws::String&& value) { m_commitIdHasBeenSet = true; m_commitId = std::move(value); }
49 inline void SetCommitId(const char* value) { m_commitIdHasBeenSet = true; m_commitId.assign(value); }
50 inline SubModule& WithCommitId(const Aws::String& value) { SetCommitId(value); return *this;}
51 inline SubModule& WithCommitId(Aws::String&& value) { SetCommitId(std::move(value)); return *this;}
52 inline SubModule& WithCommitId(const char* value) { SetCommitId(value); return *this;}
54
56
60 inline const Aws::String& GetAbsolutePath() const{ return m_absolutePath; }
61 inline bool AbsolutePathHasBeenSet() const { return m_absolutePathHasBeenSet; }
62 inline void SetAbsolutePath(const Aws::String& value) { m_absolutePathHasBeenSet = true; m_absolutePath = value; }
63 inline void SetAbsolutePath(Aws::String&& value) { m_absolutePathHasBeenSet = true; m_absolutePath = std::move(value); }
64 inline void SetAbsolutePath(const char* value) { m_absolutePathHasBeenSet = true; m_absolutePath.assign(value); }
65 inline SubModule& WithAbsolutePath(const Aws::String& value) { SetAbsolutePath(value); return *this;}
66 inline SubModule& WithAbsolutePath(Aws::String&& value) { SetAbsolutePath(std::move(value)); return *this;}
67 inline SubModule& WithAbsolutePath(const char* value) { SetAbsolutePath(value); return *this;}
69
71
75 inline const Aws::String& GetRelativePath() const{ return m_relativePath; }
76 inline bool RelativePathHasBeenSet() const { return m_relativePathHasBeenSet; }
77 inline void SetRelativePath(const Aws::String& value) { m_relativePathHasBeenSet = true; m_relativePath = value; }
78 inline void SetRelativePath(Aws::String&& value) { m_relativePathHasBeenSet = true; m_relativePath = std::move(value); }
79 inline void SetRelativePath(const char* value) { m_relativePathHasBeenSet = true; m_relativePath.assign(value); }
80 inline SubModule& WithRelativePath(const Aws::String& value) { SetRelativePath(value); return *this;}
81 inline SubModule& WithRelativePath(Aws::String&& value) { SetRelativePath(std::move(value)); return *this;}
82 inline SubModule& WithRelativePath(const char* value) { SetRelativePath(value); return *this;}
84 private:
85
86 Aws::String m_commitId;
87 bool m_commitIdHasBeenSet = false;
88
89 Aws::String m_absolutePath;
90 bool m_absolutePathHasBeenSet = false;
91
92 Aws::String m_relativePath;
93 bool m_relativePathHasBeenSet = false;
94 };
95
96} // namespace Model
97} // namespace CodeCommit
98} // namespace Aws
const Aws::String & GetRelativePath() const
Definition SubModule.h:75
SubModule & WithCommitId(const char *value)
Definition SubModule.h:52
const Aws::String & GetAbsolutePath() const
Definition SubModule.h:60
SubModule & WithCommitId(Aws::String &&value)
Definition SubModule.h:51
SubModule & WithAbsolutePath(const Aws::String &value)
Definition SubModule.h:65
void SetAbsolutePath(Aws::String &&value)
Definition SubModule.h:63
SubModule & WithAbsolutePath(const char *value)
Definition SubModule.h:67
void SetAbsolutePath(const char *value)
Definition SubModule.h:64
SubModule & WithRelativePath(const Aws::String &value)
Definition SubModule.h:80
const Aws::String & GetCommitId() const
Definition SubModule.h:45
AWS_CODECOMMIT_API Aws::Utils::Json::JsonValue Jsonize() const
SubModule & WithRelativePath(Aws::String &&value)
Definition SubModule.h:81
SubModule & WithRelativePath(const char *value)
Definition SubModule.h:82
AWS_CODECOMMIT_API SubModule()
SubModule & WithCommitId(const Aws::String &value)
Definition SubModule.h:50
void SetRelativePath(const char *value)
Definition SubModule.h:79
void SetCommitId(Aws::String &&value)
Definition SubModule.h:48
AWS_CODECOMMIT_API SubModule & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetCommitId(const char *value)
Definition SubModule.h:49
void SetAbsolutePath(const Aws::String &value)
Definition SubModule.h:62
AWS_CODECOMMIT_API SubModule(Aws::Utils::Json::JsonView jsonValue)
void SetRelativePath(Aws::String &&value)
Definition SubModule.h:78
void SetCommitId(const Aws::String &value)
Definition SubModule.h:47
SubModule & WithAbsolutePath(Aws::String &&value)
Definition SubModule.h:66
void SetRelativePath(const Aws::String &value)
Definition SubModule.h:77
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue