AWS SDK for C++

AWS SDK for C++ Version 1.11.942

Loading...
Searching...
No Matches
DeploymentBranch.h
1
6#pragma once
7#include <aws/amplifygen3/AmplifyGen3_EXPORTS.h>
8#include <aws/amplifygen3/model/DeploymentBranchBackend.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace AmplifyGen3 {
21namespace Model {
22
29 public:
30 AWS_AMPLIFYGEN3_API DeploymentBranch() = default;
31 AWS_AMPLIFYGEN3_API DeploymentBranch(Aws::Utils::Json::JsonView jsonValue);
32 AWS_AMPLIFYGEN3_API DeploymentBranch& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_AMPLIFYGEN3_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetBranchName() const { return m_branchName; }
40 inline bool BranchNameHasBeenSet() const { return m_branchNameHasBeenSet; }
41 template <typename BranchNameT = Aws::String>
42 void SetBranchName(BranchNameT&& value) {
43 m_branchNameHasBeenSet = true;
44 m_branchName = std::forward<BranchNameT>(value);
45 }
46 template <typename BranchNameT = Aws::String>
47 DeploymentBranch& WithBranchName(BranchNameT&& value) {
48 SetBranchName(std::forward<BranchNameT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetBranchArn() const { return m_branchArn; }
58 inline bool BranchArnHasBeenSet() const { return m_branchArnHasBeenSet; }
59 template <typename BranchArnT = Aws::String>
60 void SetBranchArn(BranchArnT&& value) {
61 m_branchArnHasBeenSet = true;
62 m_branchArn = std::forward<BranchArnT>(value);
63 }
64 template <typename BranchArnT = Aws::String>
65 DeploymentBranch& WithBranchArn(BranchArnT&& value) {
66 SetBranchArn(std::forward<BranchArnT>(value));
67 return *this;
68 }
70
72
75 inline const DeploymentBranchBackend& GetBackend() const { return m_backend; }
76 inline bool BackendHasBeenSet() const { return m_backendHasBeenSet; }
77 template <typename BackendT = DeploymentBranchBackend>
78 void SetBackend(BackendT&& value) {
79 m_backendHasBeenSet = true;
80 m_backend = std::forward<BackendT>(value);
81 }
82 template <typename BackendT = DeploymentBranchBackend>
83 DeploymentBranch& WithBackend(BackendT&& value) {
84 SetBackend(std::forward<BackendT>(value));
85 return *this;
86 }
88 private:
89 Aws::String m_branchName;
90
91 Aws::String m_branchArn;
92
94 bool m_branchNameHasBeenSet = false;
95 bool m_branchArnHasBeenSet = false;
96 bool m_backendHasBeenSet = false;
97};
98
99} // namespace Model
100} // namespace AmplifyGen3
101} // namespace Aws
DeploymentBranch & WithBranchArn(BranchArnT &&value)
AWS_AMPLIFYGEN3_API DeploymentBranch()=default
AWS_AMPLIFYGEN3_API DeploymentBranch(Aws::Utils::Json::JsonView jsonValue)
const DeploymentBranchBackend & GetBackend() const
AWS_AMPLIFYGEN3_API DeploymentBranch & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetBranchArn() const
DeploymentBranch & WithBackend(BackendT &&value)
AWS_AMPLIFYGEN3_API Aws::Utils::Json::JsonValue Jsonize() const
DeploymentBranch & WithBranchName(BranchNameT &&value)
const Aws::String & GetBranchName() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue