AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
BranchInfo.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 {
33 public:
34 AWS_CODECOMMIT_API BranchInfo();
35 AWS_CODECOMMIT_API BranchInfo(Aws::Utils::Json::JsonView jsonValue);
36 AWS_CODECOMMIT_API BranchInfo& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_CODECOMMIT_API Aws::Utils::Json::JsonValue Jsonize() const;
38
39
41
44 inline const Aws::String& GetBranchName() const{ return m_branchName; }
45 inline bool BranchNameHasBeenSet() const { return m_branchNameHasBeenSet; }
46 inline void SetBranchName(const Aws::String& value) { m_branchNameHasBeenSet = true; m_branchName = value; }
47 inline void SetBranchName(Aws::String&& value) { m_branchNameHasBeenSet = true; m_branchName = std::move(value); }
48 inline void SetBranchName(const char* value) { m_branchNameHasBeenSet = true; m_branchName.assign(value); }
49 inline BranchInfo& WithBranchName(const Aws::String& value) { SetBranchName(value); return *this;}
50 inline BranchInfo& WithBranchName(Aws::String&& value) { SetBranchName(std::move(value)); return *this;}
51 inline BranchInfo& WithBranchName(const char* value) { SetBranchName(value); return *this;}
53
55
58 inline const Aws::String& GetCommitId() const{ return m_commitId; }
59 inline bool CommitIdHasBeenSet() const { return m_commitIdHasBeenSet; }
60 inline void SetCommitId(const Aws::String& value) { m_commitIdHasBeenSet = true; m_commitId = value; }
61 inline void SetCommitId(Aws::String&& value) { m_commitIdHasBeenSet = true; m_commitId = std::move(value); }
62 inline void SetCommitId(const char* value) { m_commitIdHasBeenSet = true; m_commitId.assign(value); }
63 inline BranchInfo& WithCommitId(const Aws::String& value) { SetCommitId(value); return *this;}
64 inline BranchInfo& WithCommitId(Aws::String&& value) { SetCommitId(std::move(value)); return *this;}
65 inline BranchInfo& WithCommitId(const char* value) { SetCommitId(value); return *this;}
67 private:
68
69 Aws::String m_branchName;
70 bool m_branchNameHasBeenSet = false;
71
72 Aws::String m_commitId;
73 bool m_commitIdHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace CodeCommit
78} // namespace Aws
AWS_CODECOMMIT_API BranchInfo()
void SetBranchName(const char *value)
Definition BranchInfo.h:48
BranchInfo & WithBranchName(Aws::String &&value)
Definition BranchInfo.h:50
const Aws::String & GetBranchName() const
Definition BranchInfo.h:44
BranchInfo & WithBranchName(const Aws::String &value)
Definition BranchInfo.h:49
void SetBranchName(const Aws::String &value)
Definition BranchInfo.h:46
void SetBranchName(Aws::String &&value)
Definition BranchInfo.h:47
BranchInfo & WithBranchName(const char *value)
Definition BranchInfo.h:51
AWS_CODECOMMIT_API Aws::Utils::Json::JsonValue Jsonize() const
BranchInfo & WithCommitId(const char *value)
Definition BranchInfo.h:65
void SetCommitId(Aws::String &&value)
Definition BranchInfo.h:61
AWS_CODECOMMIT_API BranchInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
BranchInfo & WithCommitId(Aws::String &&value)
Definition BranchInfo.h:64
AWS_CODECOMMIT_API BranchInfo(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetCommitId() const
Definition BranchInfo.h:58
BranchInfo & WithCommitId(const Aws::String &value)
Definition BranchInfo.h:63
void SetCommitId(const Aws::String &value)
Definition BranchInfo.h:60
void SetCommitId(const char *value)
Definition BranchInfo.h:62
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue