AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AssociateRepositoryResult.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/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15template<typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace CodeGuruReviewer
26{
27namespace Model
28{
30 {
31 public:
32 AWS_CODEGURUREVIEWER_API AssociateRepositoryResult() = default;
35
36
38
41 inline const RepositoryAssociation& GetRepositoryAssociation() const { return m_repositoryAssociation; }
42 template<typename RepositoryAssociationT = RepositoryAssociation>
43 void SetRepositoryAssociation(RepositoryAssociationT&& value) { m_repositoryAssociationHasBeenSet = true; m_repositoryAssociation = std::forward<RepositoryAssociationT>(value); }
44 template<typename RepositoryAssociationT = RepositoryAssociation>
45 AssociateRepositoryResult& WithRepositoryAssociation(RepositoryAssociationT&& value) { SetRepositoryAssociation(std::forward<RepositoryAssociationT>(value)); return *this;}
47
49
59 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
60 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
61 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
62 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
63 AssociateRepositoryResult& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
64 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
65 AssociateRepositoryResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
66 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
67 }
69
71
72 inline const Aws::String& GetRequestId() const { return m_requestId; }
73 template<typename RequestIdT = Aws::String>
74 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
75 template<typename RequestIdT = Aws::String>
76 AssociateRepositoryResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
78 private:
79
80 RepositoryAssociation m_repositoryAssociation;
81 bool m_repositoryAssociationHasBeenSet = false;
82
84 bool m_tagsHasBeenSet = false;
85
86 Aws::String m_requestId;
87 bool m_requestIdHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace CodeGuruReviewer
92} // namespace Aws
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_CODEGURUREVIEWER_API AssociateRepositoryResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AssociateRepositoryResult & AddTags(TagsKeyT &&key, TagsValueT &&value)
AssociateRepositoryResult & WithRepositoryAssociation(RepositoryAssociationT &&value)
AssociateRepositoryResult & WithRequestId(RequestIdT &&value)
AWS_CODEGURUREVIEWER_API AssociateRepositoryResult()=default
AWS_CODEGURUREVIEWER_API AssociateRepositoryResult & 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