AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
AssociateRepositoryRequest.h
1
6#pragma once
7#include <aws/codeguru-reviewer/CodeGuruReviewer_EXPORTS.h>
8#include <aws/codeguru-reviewer/CodeGuruReviewerRequest.h>
9#include <aws/codeguru-reviewer/model/Repository.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/codeguru-reviewer/model/KMSKeyDetails.h>
13#include <utility>
14#include <aws/core/utils/UUID.h>
15
16namespace Aws
17{
18namespace CodeGuruReviewer
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_CODEGURUREVIEWER_API AssociateRepositoryRequest() = default;
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 "AssociateRepository"; }
35
36 AWS_CODEGURUREVIEWER_API Aws::String SerializePayload() const override;
37
38
40
43 inline const Repository& GetRepository() const { return m_repository; }
44 inline bool RepositoryHasBeenSet() const { return m_repositoryHasBeenSet; }
45 template<typename RepositoryT = Repository>
46 void SetRepository(RepositoryT&& value) { m_repositoryHasBeenSet = true; m_repository = std::forward<RepositoryT>(value); }
47 template<typename RepositoryT = Repository>
48 AssociateRepositoryRequest& WithRepository(RepositoryT&& value) { SetRepository(std::forward<RepositoryT>(value)); return *this;}
50
52
56 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
57 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
58 template<typename ClientRequestTokenT = Aws::String>
59 void SetClientRequestToken(ClientRequestTokenT&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::forward<ClientRequestTokenT>(value); }
60 template<typename ClientRequestTokenT = Aws::String>
61 AssociateRepositoryRequest& WithClientRequestToken(ClientRequestTokenT&& value) { SetClientRequestToken(std::forward<ClientRequestTokenT>(value)); return *this;}
63
65
75 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
76 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
77 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
78 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
79 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
80 AssociateRepositoryRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
81 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
82 AssociateRepositoryRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
83 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
84 }
86
88
96 inline const KMSKeyDetails& GetKMSKeyDetails() const { return m_kMSKeyDetails; }
97 inline bool KMSKeyDetailsHasBeenSet() const { return m_kMSKeyDetailsHasBeenSet; }
98 template<typename KMSKeyDetailsT = KMSKeyDetails>
99 void SetKMSKeyDetails(KMSKeyDetailsT&& value) { m_kMSKeyDetailsHasBeenSet = true; m_kMSKeyDetails = std::forward<KMSKeyDetailsT>(value); }
100 template<typename KMSKeyDetailsT = KMSKeyDetails>
101 AssociateRepositoryRequest& WithKMSKeyDetails(KMSKeyDetailsT&& value) { SetKMSKeyDetails(std::forward<KMSKeyDetailsT>(value)); return *this;}
103 private:
104
105 Repository m_repository;
106 bool m_repositoryHasBeenSet = false;
107
108 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
109 bool m_clientRequestTokenHasBeenSet = true;
110
112 bool m_tagsHasBeenSet = false;
113
114 KMSKeyDetails m_kMSKeyDetails;
115 bool m_kMSKeyDetailsHasBeenSet = false;
116 };
117
118} // namespace Model
119} // namespace CodeGuruReviewer
120} // namespace Aws
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AssociateRepositoryRequest & WithClientRequestToken(ClientRequestTokenT &&value)
AWS_CODEGURUREVIEWER_API Aws::String SerializePayload() const override
AWS_CODEGURUREVIEWER_API AssociateRepositoryRequest()=default
AssociateRepositoryRequest & WithKMSKeyDetails(KMSKeyDetailsT &&value)
AssociateRepositoryRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
AssociateRepositoryRequest & WithRepository(RepositoryT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String