AWS SDK for C++  1.8.152
AWS SDK for C++
Approval.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace CodeCommit
23 {
24 namespace Model
25 {
26 
34  {
35  public:
40 
41 
45  inline const Aws::String& GetUserArn() const{ return m_userArn; }
46 
50  inline bool UserArnHasBeenSet() const { return m_userArnHasBeenSet; }
51 
55  inline void SetUserArn(const Aws::String& value) { m_userArnHasBeenSet = true; m_userArn = value; }
56 
60  inline void SetUserArn(Aws::String&& value) { m_userArnHasBeenSet = true; m_userArn = std::move(value); }
61 
65  inline void SetUserArn(const char* value) { m_userArnHasBeenSet = true; m_userArn.assign(value); }
66 
70  inline Approval& WithUserArn(const Aws::String& value) { SetUserArn(value); return *this;}
71 
75  inline Approval& WithUserArn(Aws::String&& value) { SetUserArn(std::move(value)); return *this;}
76 
80  inline Approval& WithUserArn(const char* value) { SetUserArn(value); return *this;}
81 
82 
87  inline const ApprovalState& GetApprovalState() const{ return m_approvalState; }
88 
93  inline bool ApprovalStateHasBeenSet() const { return m_approvalStateHasBeenSet; }
94 
99  inline void SetApprovalState(const ApprovalState& value) { m_approvalStateHasBeenSet = true; m_approvalState = value; }
100 
105  inline void SetApprovalState(ApprovalState&& value) { m_approvalStateHasBeenSet = true; m_approvalState = std::move(value); }
106 
111  inline Approval& WithApprovalState(const ApprovalState& value) { SetApprovalState(value); return *this;}
112 
117  inline Approval& WithApprovalState(ApprovalState&& value) { SetApprovalState(std::move(value)); return *this;}
118 
119  private:
120 
121  Aws::String m_userArn;
122  bool m_userArnHasBeenSet;
123 
124  ApprovalState m_approvalState;
125  bool m_approvalStateHasBeenSet;
126  };
127 
128 } // namespace Model
129 } // namespace CodeCommit
130 } // namespace Aws
Aws::CodeCommit::Model::Approval::UserArnHasBeenSet
bool UserArnHasBeenSet() const
Definition: Approval.h:50
Aws::CodeCommit::Model::Approval::WithUserArn
Approval & WithUserArn(const char *value)
Definition: Approval.h:80
CodeCommit_EXPORTS.h
Aws::CodeCommit::Model::Approval::WithApprovalState
Approval & WithApprovalState(ApprovalState &&value)
Definition: Approval.h:117
Aws::CodeCommit::Model::Approval::Approval
Approval(Aws::Utils::Json::JsonView jsonValue)
Aws::CodeCommit::Model::Approval::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::CodeCommit::Model::Approval::Approval
Approval()
Aws::CodeCommit::Model::Approval::SetUserArn
void SetUserArn(const char *value)
Definition: Approval.h:65
Aws::CodeCommit::Model::Approval::ApprovalStateHasBeenSet
bool ApprovalStateHasBeenSet() const
Definition: Approval.h:93
Aws::CodeCommit::Model::Approval::GetApprovalState
const ApprovalState & GetApprovalState() const
Definition: Approval.h:87
ApprovalState.h
Aws::CodeCommit::Model::Approval::SetApprovalState
void SetApprovalState(const ApprovalState &value)
Definition: Approval.h:99
Aws::CodeCommit::Model::Approval::operator=
Approval & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::CodeCommit::Model::Approval::WithUserArn
Approval & WithUserArn(Aws::String &&value)
Definition: Approval.h:75
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
AWS_CODECOMMIT_API
#define AWS_CODECOMMIT_API
Definition: CodeCommit_EXPORTS.h:28
Aws::CodeCommit::Model::Approval::SetApprovalState
void SetApprovalState(ApprovalState &&value)
Definition: Approval.h:105
Aws::CodeCommit::Model::ApprovalState
ApprovalState
Definition: ApprovalState.h:17
Aws::CodeCommit::Model::Approval::WithUserArn
Approval & WithUserArn(const Aws::String &value)
Definition: Approval.h:70
Aws
Definition: AccessManagementClient.h:15
Aws::CodeCommit::Model::Approval::WithApprovalState
Approval & WithApprovalState(const ApprovalState &value)
Definition: Approval.h:111
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CodeCommit::Model::Approval::SetUserArn
void SetUserArn(const Aws::String &value)
Definition: Approval.h:55
Aws::CodeCommit::Model::Approval::SetUserArn
void SetUserArn(Aws::String &&value)
Definition: Approval.h:60
Aws::CodeCommit::Model::Approval::GetUserArn
const Aws::String & GetUserArn() const
Definition: Approval.h:45
Aws::CodeCommit::Model::Approval
Definition: Approval.h:34