AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Approval.h
1
6#pragma once
7#include <aws/codecommit/CodeCommit_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/codecommit/model/ApprovalState.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace CodeCommit
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_CODECOMMIT_API Approval();
37 AWS_CODECOMMIT_API Approval(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CODECOMMIT_API Approval& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CODECOMMIT_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetUserArn() const{ return m_userArn; }
47 inline bool UserArnHasBeenSet() const { return m_userArnHasBeenSet; }
48 inline void SetUserArn(const Aws::String& value) { m_userArnHasBeenSet = true; m_userArn = value; }
49 inline void SetUserArn(Aws::String&& value) { m_userArnHasBeenSet = true; m_userArn = std::move(value); }
50 inline void SetUserArn(const char* value) { m_userArnHasBeenSet = true; m_userArn.assign(value); }
51 inline Approval& WithUserArn(const Aws::String& value) { SetUserArn(value); return *this;}
52 inline Approval& WithUserArn(Aws::String&& value) { SetUserArn(std::move(value)); return *this;}
53 inline Approval& WithUserArn(const char* value) { SetUserArn(value); return *this;}
55
57
61 inline const ApprovalState& GetApprovalState() const{ return m_approvalState; }
62 inline bool ApprovalStateHasBeenSet() const { return m_approvalStateHasBeenSet; }
63 inline void SetApprovalState(const ApprovalState& value) { m_approvalStateHasBeenSet = true; m_approvalState = value; }
64 inline void SetApprovalState(ApprovalState&& value) { m_approvalStateHasBeenSet = true; m_approvalState = std::move(value); }
65 inline Approval& WithApprovalState(const ApprovalState& value) { SetApprovalState(value); return *this;}
66 inline Approval& WithApprovalState(ApprovalState&& value) { SetApprovalState(std::move(value)); return *this;}
68 private:
69
70 Aws::String m_userArn;
71 bool m_userArnHasBeenSet = false;
72
73 ApprovalState m_approvalState;
74 bool m_approvalStateHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace CodeCommit
79} // namespace Aws
AWS_CODECOMMIT_API Aws::Utils::Json::JsonValue Jsonize() const
Approval & WithApprovalState(const ApprovalState &value)
Definition Approval.h:65
Approval & WithApprovalState(ApprovalState &&value)
Definition Approval.h:66
AWS_CODECOMMIT_API Approval(Aws::Utils::Json::JsonView jsonValue)
Approval & WithUserArn(const char *value)
Definition Approval.h:53
void SetUserArn(const Aws::String &value)
Definition Approval.h:48
void SetApprovalState(ApprovalState &&value)
Definition Approval.h:64
void SetApprovalState(const ApprovalState &value)
Definition Approval.h:63
AWS_CODECOMMIT_API Approval & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CODECOMMIT_API Approval()
void SetUserArn(Aws::String &&value)
Definition Approval.h:49
void SetUserArn(const char *value)
Definition Approval.h:50
const ApprovalState & GetApprovalState() const
Definition Approval.h:61
const Aws::String & GetUserArn() const
Definition Approval.h:46
Approval & WithUserArn(const Aws::String &value)
Definition Approval.h:51
Approval & WithUserArn(Aws::String &&value)
Definition Approval.h:52
bool ApprovalStateHasBeenSet() const
Definition Approval.h:62
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue