AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
TestRepositoryTriggersRequest.h
1
6#pragma once
7#include <aws/codecommit/CodeCommit_EXPORTS.h>
8#include <aws/codecommit/CodeCommitRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/codecommit/model/RepositoryTrigger.h>
12#include <utility>
13
14namespace Aws
15{
16namespace CodeCommit
17{
18namespace Model
19{
20
28 {
29 public:
30 AWS_CODECOMMIT_API TestRepositoryTriggersRequest();
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "TestRepositoryTriggers"; }
37
38 AWS_CODECOMMIT_API Aws::String SerializePayload() const override;
39
41
42
44
47 inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; }
48 inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
49 inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }
50 inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::move(value); }
51 inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); }
53 inline TestRepositoryTriggersRequest& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;}
54 inline TestRepositoryTriggersRequest& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
56
58
61 inline const Aws::Vector<RepositoryTrigger>& GetTriggers() const{ return m_triggers; }
62 inline bool TriggersHasBeenSet() const { return m_triggersHasBeenSet; }
63 inline void SetTriggers(const Aws::Vector<RepositoryTrigger>& value) { m_triggersHasBeenSet = true; m_triggers = value; }
64 inline void SetTriggers(Aws::Vector<RepositoryTrigger>&& value) { m_triggersHasBeenSet = true; m_triggers = std::move(value); }
66 inline TestRepositoryTriggersRequest& WithTriggers(Aws::Vector<RepositoryTrigger>&& value) { SetTriggers(std::move(value)); return *this;}
67 inline TestRepositoryTriggersRequest& AddTriggers(const RepositoryTrigger& value) { m_triggersHasBeenSet = true; m_triggers.push_back(value); return *this; }
68 inline TestRepositoryTriggersRequest& AddTriggers(RepositoryTrigger&& value) { m_triggersHasBeenSet = true; m_triggers.push_back(std::move(value)); return *this; }
70 private:
71
72 Aws::String m_repositoryName;
73 bool m_repositoryNameHasBeenSet = false;
74
76 bool m_triggersHasBeenSet = false;
77 };
78
79} // namespace Model
80} // namespace CodeCommit
81} // namespace Aws
TestRepositoryTriggersRequest & WithRepositoryName(const char *value)
void SetTriggers(const Aws::Vector< RepositoryTrigger > &value)
void SetTriggers(Aws::Vector< RepositoryTrigger > &&value)
TestRepositoryTriggersRequest & WithTriggers(const Aws::Vector< RepositoryTrigger > &value)
const Aws::Vector< RepositoryTrigger > & GetTriggers() const
TestRepositoryTriggersRequest & WithRepositoryName(const Aws::String &value)
TestRepositoryTriggersRequest & WithTriggers(Aws::Vector< RepositoryTrigger > &&value)
AWS_CODECOMMIT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
TestRepositoryTriggersRequest & AddTriggers(const RepositoryTrigger &value)
AWS_CODECOMMIT_API Aws::String SerializePayload() const override
TestRepositoryTriggersRequest & AddTriggers(RepositoryTrigger &&value)
TestRepositoryTriggersRequest & WithRepositoryName(Aws::String &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector