AWS SDK for C++

AWS SDK for C++ Version 1.11.763

Loading...
Searching...
No Matches
DisassociateRepositoryResult.h
1
6#pragma once
7#include <aws/codeguru-reviewer/CodeGuruReviewer_EXPORTS.h>
8#include <aws/codeguru-reviewer/model/RepositoryAssociation.h>
9#include <aws/core/http/HttpResponse.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace CodeGuruReviewer {
25namespace Model {
27 public:
28 AWS_CODEGURUREVIEWER_API DisassociateRepositoryResult() = default;
31
33
36 inline const RepositoryAssociation& GetRepositoryAssociation() const { return m_repositoryAssociation; }
37 template <typename RepositoryAssociationT = RepositoryAssociation>
38 void SetRepositoryAssociation(RepositoryAssociationT&& value) {
39 m_repositoryAssociationHasBeenSet = true;
40 m_repositoryAssociation = std::forward<RepositoryAssociationT>(value);
41 }
42 template <typename RepositoryAssociationT = RepositoryAssociation>
44 SetRepositoryAssociation(std::forward<RepositoryAssociationT>(value));
45 return *this;
46 }
48
50
60 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
61 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
62 void SetTags(TagsT&& value) {
63 m_tagsHasBeenSet = true;
64 m_tags = std::forward<TagsT>(value);
65 }
66 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
68 SetTags(std::forward<TagsT>(value));
69 return *this;
70 }
71 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
72 DisassociateRepositoryResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
73 m_tagsHasBeenSet = true;
74 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
75 return *this;
76 }
78
80
81 inline const Aws::String& GetRequestId() const { return m_requestId; }
82 template <typename RequestIdT = Aws::String>
83 void SetRequestId(RequestIdT&& value) {
84 m_requestIdHasBeenSet = true;
85 m_requestId = std::forward<RequestIdT>(value);
86 }
87 template <typename RequestIdT = Aws::String>
89 SetRequestId(std::forward<RequestIdT>(value));
90 return *this;
91 }
93 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
94
95 private:
96 RepositoryAssociation m_repositoryAssociation;
97
99
100 Aws::String m_requestId;
101 Aws::Http::HttpResponseCode m_HttpResponseCode;
102 bool m_repositoryAssociationHasBeenSet = false;
103 bool m_tagsHasBeenSet = false;
104 bool m_requestIdHasBeenSet = false;
105};
106
107} // namespace Model
108} // namespace CodeGuruReviewer
109} // namespace Aws
DisassociateRepositoryResult & WithRepositoryAssociation(RepositoryAssociationT &&value)
AWS_CODEGURUREVIEWER_API DisassociateRepositoryResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_CODEGURUREVIEWER_API DisassociateRepositoryResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DisassociateRepositoryResult & WithRequestId(RequestIdT &&value)
DisassociateRepositoryResult & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_CODEGURUREVIEWER_API DisassociateRepositoryResult()=default
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
Aws::Utils::Json::JsonValue JsonValue