AWS SDK for C++

AWS SDK for C++ Version 1.11.763

Loading...
Searching...
No Matches
DescribeRepositoryAssociationResult.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 DescribeRepositoryAssociationResult() = default;
32
34
37 inline const RepositoryAssociation& GetRepositoryAssociation() const { return m_repositoryAssociation; }
38 template <typename RepositoryAssociationT = RepositoryAssociation>
39 void SetRepositoryAssociation(RepositoryAssociationT&& value) {
40 m_repositoryAssociationHasBeenSet = true;
41 m_repositoryAssociation = std::forward<RepositoryAssociationT>(value);
42 }
43 template <typename RepositoryAssociationT = RepositoryAssociation>
45 SetRepositoryAssociation(std::forward<RepositoryAssociationT>(value));
46 return *this;
47 }
49
51
61 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
62 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
63 void SetTags(TagsT&& value) {
64 m_tagsHasBeenSet = true;
65 m_tags = std::forward<TagsT>(value);
66 }
67 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
69 SetTags(std::forward<TagsT>(value));
70 return *this;
71 }
72 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
73 DescribeRepositoryAssociationResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
74 m_tagsHasBeenSet = true;
75 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
76 return *this;
77 }
79
81
82 inline const Aws::String& GetRequestId() const { return m_requestId; }
83 template <typename RequestIdT = Aws::String>
84 void SetRequestId(RequestIdT&& value) {
85 m_requestIdHasBeenSet = true;
86 m_requestId = std::forward<RequestIdT>(value);
87 }
88 template <typename RequestIdT = Aws::String>
90 SetRequestId(std::forward<RequestIdT>(value));
91 return *this;
92 }
94 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
95
96 private:
97 RepositoryAssociation m_repositoryAssociation;
98
100
101 Aws::String m_requestId;
102 Aws::Http::HttpResponseCode m_HttpResponseCode;
103 bool m_repositoryAssociationHasBeenSet = false;
104 bool m_tagsHasBeenSet = false;
105 bool m_requestIdHasBeenSet = false;
106};
107
108} // namespace Model
109} // namespace CodeGuruReviewer
110} // namespace Aws
DescribeRepositoryAssociationResult & WithRequestId(RequestIdT &&value)
DescribeRepositoryAssociationResult & AddTags(TagsKeyT &&key, TagsValueT &&value)
DescribeRepositoryAssociationResult & WithRepositoryAssociation(RepositoryAssociationT &&value)
AWS_CODEGURUREVIEWER_API DescribeRepositoryAssociationResult()=default
AWS_CODEGURUREVIEWER_API DescribeRepositoryAssociationResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_CODEGURUREVIEWER_API DescribeRepositoryAssociationResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
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