AWS SDK for C++  1.9.40
AWS SDK for C++
DeleteBranchRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace CodeCommit
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 "DeleteBranch"; }
35 
36  Aws::String SerializePayload() const override;
37 
39 
40 
44  inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; }
45 
49  inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
50 
54  inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }
55 
59  inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::move(value); }
60 
64  inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); }
65 
69  inline DeleteBranchRequest& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;}
70 
74  inline DeleteBranchRequest& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;}
75 
79  inline DeleteBranchRequest& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
80 
81 
85  inline const Aws::String& GetBranchName() const{ return m_branchName; }
86 
90  inline bool BranchNameHasBeenSet() const { return m_branchNameHasBeenSet; }
91 
95  inline void SetBranchName(const Aws::String& value) { m_branchNameHasBeenSet = true; m_branchName = value; }
96 
100  inline void SetBranchName(Aws::String&& value) { m_branchNameHasBeenSet = true; m_branchName = std::move(value); }
101 
105  inline void SetBranchName(const char* value) { m_branchNameHasBeenSet = true; m_branchName.assign(value); }
106 
110  inline DeleteBranchRequest& WithBranchName(const Aws::String& value) { SetBranchName(value); return *this;}
111 
115  inline DeleteBranchRequest& WithBranchName(Aws::String&& value) { SetBranchName(std::move(value)); return *this;}
116 
120  inline DeleteBranchRequest& WithBranchName(const char* value) { SetBranchName(value); return *this;}
121 
122  private:
123 
124  Aws::String m_repositoryName;
125  bool m_repositoryNameHasBeenSet;
126 
127  Aws::String m_branchName;
128  bool m_branchNameHasBeenSet;
129  };
130 
131 } // namespace Model
132 } // namespace CodeCommit
133 } // namespace Aws
Aws::CodeCommit::Model::DeleteBranchRequest::DeleteBranchRequest
DeleteBranchRequest()
Aws::CodeCommit::Model::DeleteBranchRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CodeCommit_EXPORTS.h
Aws::CodeCommit::Model::DeleteBranchRequest::WithRepositoryName
DeleteBranchRequest & WithRepositoryName(const char *value)
Definition: DeleteBranchRequest.h:79
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::CodeCommit::Model::DeleteBranchRequest::SetRepositoryName
void SetRepositoryName(Aws::String &&value)
Definition: DeleteBranchRequest.h:59
Aws::CodeCommit::Model::DeleteBranchRequest
Definition: DeleteBranchRequest.h:26
Aws::CodeCommit::CodeCommitRequest
Definition: CodeCommitRequest.h:17
Aws::CodeCommit::Model::DeleteBranchRequest::GetRepositoryName
const Aws::String & GetRepositoryName() const
Definition: DeleteBranchRequest.h:44
CodeCommitRequest.h
Aws::CodeCommit::Model::DeleteBranchRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DeleteBranchRequest.h:34
Aws::CodeCommit::Model::DeleteBranchRequest::SetBranchName
void SetBranchName(Aws::String &&value)
Definition: DeleteBranchRequest.h:100
Aws::CodeCommit::Model::DeleteBranchRequest::SetRepositoryName
void SetRepositoryName(const char *value)
Definition: DeleteBranchRequest.h:64
Aws::CodeCommit::Model::DeleteBranchRequest::BranchNameHasBeenSet
bool BranchNameHasBeenSet() const
Definition: DeleteBranchRequest.h:90
Aws::CodeCommit::Model::DeleteBranchRequest::WithRepositoryName
DeleteBranchRequest & WithRepositoryName(const Aws::String &value)
Definition: DeleteBranchRequest.h:69
Aws::CodeCommit::Model::DeleteBranchRequest::WithBranchName
DeleteBranchRequest & WithBranchName(Aws::String &&value)
Definition: DeleteBranchRequest.h:115
Aws::CodeCommit::Model::DeleteBranchRequest::WithBranchName
DeleteBranchRequest & WithBranchName(const Aws::String &value)
Definition: DeleteBranchRequest.h:110
AWSString.h
Aws::CodeCommit::Model::DeleteBranchRequest::GetBranchName
const Aws::String & GetBranchName() const
Definition: DeleteBranchRequest.h:85
Aws::CodeCommit::Model::DeleteBranchRequest::SetBranchName
void SetBranchName(const char *value)
Definition: DeleteBranchRequest.h:105
AWS_CODECOMMIT_API
#define AWS_CODECOMMIT_API
Definition: CodeCommit_EXPORTS.h:28
Aws::CodeCommit::Model::DeleteBranchRequest::RepositoryNameHasBeenSet
bool RepositoryNameHasBeenSet() const
Definition: DeleteBranchRequest.h:49
Aws::CodeCommit::Model::DeleteBranchRequest::WithBranchName
DeleteBranchRequest & WithBranchName(const char *value)
Definition: DeleteBranchRequest.h:120
Aws::CodeCommit::Model::DeleteBranchRequest::SerializePayload
Aws::String SerializePayload() const override
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CodeCommit::Model::DeleteBranchRequest::SetBranchName
void SetBranchName(const Aws::String &value)
Definition: DeleteBranchRequest.h:95
Aws::CodeCommit::Model::DeleteBranchRequest::SetRepositoryName
void SetRepositoryName(const Aws::String &value)
Definition: DeleteBranchRequest.h:54
Aws::CodeCommit::Model::DeleteBranchRequest::WithRepositoryName
DeleteBranchRequest & WithRepositoryName(Aws::String &&value)
Definition: DeleteBranchRequest.h:74