AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PutRepositoryTriggersRequest.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 PutRepositoryTriggersRequest();
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 "PutRepositoryTriggers"; }
37
38 AWS_CODECOMMIT_API Aws::String SerializePayload() const override;
39
41
42
44
48 inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; }
49 inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
50 inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }
51 inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::move(value); }
52 inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); }
54 inline PutRepositoryTriggersRequest& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;}
55 inline PutRepositoryTriggersRequest& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
57
59
62 inline const Aws::Vector<RepositoryTrigger>& GetTriggers() const{ return m_triggers; }
63 inline bool TriggersHasBeenSet() const { return m_triggersHasBeenSet; }
64 inline void SetTriggers(const Aws::Vector<RepositoryTrigger>& value) { m_triggersHasBeenSet = true; m_triggers = value; }
65 inline void SetTriggers(Aws::Vector<RepositoryTrigger>&& value) { m_triggersHasBeenSet = true; m_triggers = std::move(value); }
67 inline PutRepositoryTriggersRequest& WithTriggers(Aws::Vector<RepositoryTrigger>&& value) { SetTriggers(std::move(value)); return *this;}
68 inline PutRepositoryTriggersRequest& AddTriggers(const RepositoryTrigger& value) { m_triggersHasBeenSet = true; m_triggers.push_back(value); return *this; }
69 inline PutRepositoryTriggersRequest& AddTriggers(RepositoryTrigger&& value) { m_triggersHasBeenSet = true; m_triggers.push_back(std::move(value)); return *this; }
71 private:
72
73 Aws::String m_repositoryName;
74 bool m_repositoryNameHasBeenSet = false;
75
77 bool m_triggersHasBeenSet = false;
78 };
79
80} // namespace Model
81} // namespace CodeCommit
82} // namespace Aws
AWS_CODECOMMIT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetTriggers(Aws::Vector< RepositoryTrigger > &&value)
PutRepositoryTriggersRequest & AddTriggers(RepositoryTrigger &&value)
PutRepositoryTriggersRequest & AddTriggers(const RepositoryTrigger &value)
PutRepositoryTriggersRequest & WithRepositoryName(const char *value)
PutRepositoryTriggersRequest & WithTriggers(Aws::Vector< RepositoryTrigger > &&value)
const Aws::Vector< RepositoryTrigger > & GetTriggers() const
void SetTriggers(const Aws::Vector< RepositoryTrigger > &value)
PutRepositoryTriggersRequest & WithRepositoryName(Aws::String &&value)
PutRepositoryTriggersRequest & WithTriggers(const Aws::Vector< RepositoryTrigger > &value)
PutRepositoryTriggersRequest & WithRepositoryName(const Aws::String &value)
AWS_CODECOMMIT_API Aws::String SerializePayload() const override
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