AWS SDK for C++  1.9.155
AWS SDK for C++
GetBranchRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Amplify
15 {
16 namespace Model
17 {
18 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "GetBranch"; }
35 
36  Aws::String SerializePayload() const override;
37 
38 
42  inline const Aws::String& GetAppId() const{ return m_appId; }
43 
47  inline bool AppIdHasBeenSet() const { return m_appIdHasBeenSet; }
48 
52  inline void SetAppId(const Aws::String& value) { m_appIdHasBeenSet = true; m_appId = value; }
53 
57  inline void SetAppId(Aws::String&& value) { m_appIdHasBeenSet = true; m_appId = std::move(value); }
58 
62  inline void SetAppId(const char* value) { m_appIdHasBeenSet = true; m_appId.assign(value); }
63 
67  inline GetBranchRequest& WithAppId(const Aws::String& value) { SetAppId(value); return *this;}
68 
72  inline GetBranchRequest& WithAppId(Aws::String&& value) { SetAppId(std::move(value)); return *this;}
73 
77  inline GetBranchRequest& WithAppId(const char* value) { SetAppId(value); return *this;}
78 
79 
83  inline const Aws::String& GetBranchName() const{ return m_branchName; }
84 
88  inline bool BranchNameHasBeenSet() const { return m_branchNameHasBeenSet; }
89 
93  inline void SetBranchName(const Aws::String& value) { m_branchNameHasBeenSet = true; m_branchName = value; }
94 
98  inline void SetBranchName(Aws::String&& value) { m_branchNameHasBeenSet = true; m_branchName = std::move(value); }
99 
103  inline void SetBranchName(const char* value) { m_branchNameHasBeenSet = true; m_branchName.assign(value); }
104 
108  inline GetBranchRequest& WithBranchName(const Aws::String& value) { SetBranchName(value); return *this;}
109 
113  inline GetBranchRequest& WithBranchName(Aws::String&& value) { SetBranchName(std::move(value)); return *this;}
114 
118  inline GetBranchRequest& WithBranchName(const char* value) { SetBranchName(value); return *this;}
119 
120  private:
121 
122  Aws::String m_appId;
123  bool m_appIdHasBeenSet;
124 
125  Aws::String m_branchName;
126  bool m_branchNameHasBeenSet;
127  };
128 
129 } // namespace Model
130 } // namespace Amplify
131 } // namespace Aws
Amplify_EXPORTS.h
Aws::Amplify::Model::GetBranchRequest
Definition: GetBranchRequest.h:26
Aws::Amplify::Model::GetBranchRequest::GetAppId
const Aws::String & GetAppId() const
Definition: GetBranchRequest.h:42
Aws::Amplify::Model::GetBranchRequest::WithAppId
GetBranchRequest & WithAppId(const Aws::String &value)
Definition: GetBranchRequest.h:67
Aws::Amplify::Model::GetBranchRequest::SetAppId
void SetAppId(Aws::String &&value)
Definition: GetBranchRequest.h:57
Aws::Amplify::Model::GetBranchRequest::WithBranchName
GetBranchRequest & WithBranchName(const Aws::String &value)
Definition: GetBranchRequest.h:108
Aws::Amplify::Model::GetBranchRequest::WithBranchName
GetBranchRequest & WithBranchName(Aws::String &&value)
Definition: GetBranchRequest.h:113
Aws::Amplify::Model::GetBranchRequest::SetAppId
void SetAppId(const Aws::String &value)
Definition: GetBranchRequest.h:52
Aws::Amplify::Model::GetBranchRequest::SetBranchName
void SetBranchName(Aws::String &&value)
Definition: GetBranchRequest.h:98
Aws::Amplify::Model::GetBranchRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Amplify::Model::GetBranchRequest::WithAppId
GetBranchRequest & WithAppId(Aws::String &&value)
Definition: GetBranchRequest.h:72
Aws::Amplify::Model::GetBranchRequest::WithBranchName
GetBranchRequest & WithBranchName(const char *value)
Definition: GetBranchRequest.h:118
AmplifyRequest.h
Aws::Amplify::AmplifyRequest
Definition: AmplifyRequest.h:17
Aws::Amplify::Model::GetBranchRequest::BranchNameHasBeenSet
bool BranchNameHasBeenSet() const
Definition: GetBranchRequest.h:88
Aws::Amplify::Model::GetBranchRequest::SetAppId
void SetAppId(const char *value)
Definition: GetBranchRequest.h:62
Aws::Amplify::Model::GetBranchRequest::SetBranchName
void SetBranchName(const char *value)
Definition: GetBranchRequest.h:103
AWSString.h
Aws::Amplify::Model::GetBranchRequest::GetBranchName
const Aws::String & GetBranchName() const
Definition: GetBranchRequest.h:83
Aws::Amplify::Model::GetBranchRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetBranchRequest.h:34
Aws::Amplify::Model::GetBranchRequest::SetBranchName
void SetBranchName(const Aws::String &value)
Definition: GetBranchRequest.h:93
Aws::Amplify::Model::GetBranchRequest::GetBranchRequest
GetBranchRequest()
Aws
Definition: AccessManagementClient.h:15
Aws::Amplify::Model::GetBranchRequest::AppIdHasBeenSet
bool AppIdHasBeenSet() const
Definition: GetBranchRequest.h:47
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Amplify::Model::GetBranchRequest::WithAppId
GetBranchRequest & WithAppId(const char *value)
Definition: GetBranchRequest.h:77
AWS_AMPLIFY_API
#define AWS_AMPLIFY_API
Definition: Amplify_EXPORTS.h:28