AWS SDK for C++

AWS SDK for C++ Version 1.11.844

Loading...
Searching...
No Matches
IntegratedResourceMetadata.h
1
6#pragma once
7#include <aws/securityagent/SecurityAgent_EXPORTS.h>
8#include <aws/securityagent/model/BitbucketRepositoryMetadata.h>
9#include <aws/securityagent/model/ConfluenceDocumentMetadata.h>
10#include <aws/securityagent/model/GitHubRepositoryMetadata.h>
11#include <aws/securityagent/model/GitLabRepositoryMetadata.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace SecurityAgent {
23namespace Model {
24
32 public:
33 AWS_SECURITYAGENT_API IntegratedResourceMetadata() = default;
36 AWS_SECURITYAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const GitHubRepositoryMetadata& GetGithubRepository() const { return m_githubRepository; }
43 inline bool GithubRepositoryHasBeenSet() const { return m_githubRepositoryHasBeenSet; }
44 template <typename GithubRepositoryT = GitHubRepositoryMetadata>
45 void SetGithubRepository(GithubRepositoryT&& value) {
46 m_githubRepositoryHasBeenSet = true;
47 m_githubRepository = std::forward<GithubRepositoryT>(value);
48 }
49 template <typename GithubRepositoryT = GitHubRepositoryMetadata>
51 SetGithubRepository(std::forward<GithubRepositoryT>(value));
52 return *this;
53 }
55
57
58 inline const GitLabRepositoryMetadata& GetGitlabRepository() const { return m_gitlabRepository; }
59 inline bool GitlabRepositoryHasBeenSet() const { return m_gitlabRepositoryHasBeenSet; }
60 template <typename GitlabRepositoryT = GitLabRepositoryMetadata>
61 void SetGitlabRepository(GitlabRepositoryT&& value) {
62 m_gitlabRepositoryHasBeenSet = true;
63 m_gitlabRepository = std::forward<GitlabRepositoryT>(value);
64 }
65 template <typename GitlabRepositoryT = GitLabRepositoryMetadata>
67 SetGitlabRepository(std::forward<GitlabRepositoryT>(value));
68 return *this;
69 }
71
73
74 inline const BitbucketRepositoryMetadata& GetBitbucketRepository() const { return m_bitbucketRepository; }
75 inline bool BitbucketRepositoryHasBeenSet() const { return m_bitbucketRepositoryHasBeenSet; }
76 template <typename BitbucketRepositoryT = BitbucketRepositoryMetadata>
77 void SetBitbucketRepository(BitbucketRepositoryT&& value) {
78 m_bitbucketRepositoryHasBeenSet = true;
79 m_bitbucketRepository = std::forward<BitbucketRepositoryT>(value);
80 }
81 template <typename BitbucketRepositoryT = BitbucketRepositoryMetadata>
82 IntegratedResourceMetadata& WithBitbucketRepository(BitbucketRepositoryT&& value) {
83 SetBitbucketRepository(std::forward<BitbucketRepositoryT>(value));
84 return *this;
85 }
87
89
90 inline const ConfluenceDocumentMetadata& GetConfluenceDocument() const { return m_confluenceDocument; }
91 inline bool ConfluenceDocumentHasBeenSet() const { return m_confluenceDocumentHasBeenSet; }
92 template <typename ConfluenceDocumentT = ConfluenceDocumentMetadata>
93 void SetConfluenceDocument(ConfluenceDocumentT&& value) {
94 m_confluenceDocumentHasBeenSet = true;
95 m_confluenceDocument = std::forward<ConfluenceDocumentT>(value);
96 }
97 template <typename ConfluenceDocumentT = ConfluenceDocumentMetadata>
98 IntegratedResourceMetadata& WithConfluenceDocument(ConfluenceDocumentT&& value) {
99 SetConfluenceDocument(std::forward<ConfluenceDocumentT>(value));
100 return *this;
101 }
103 private:
104 GitHubRepositoryMetadata m_githubRepository;
105
106 GitLabRepositoryMetadata m_gitlabRepository;
107
108 BitbucketRepositoryMetadata m_bitbucketRepository;
109
110 ConfluenceDocumentMetadata m_confluenceDocument;
111 bool m_githubRepositoryHasBeenSet = false;
112 bool m_gitlabRepositoryHasBeenSet = false;
113 bool m_bitbucketRepositoryHasBeenSet = false;
114 bool m_confluenceDocumentHasBeenSet = false;
115};
116
117} // namespace Model
118} // namespace SecurityAgent
119} // namespace Aws
IntegratedResourceMetadata & WithConfluenceDocument(ConfluenceDocumentT &&value)
IntegratedResourceMetadata & WithGithubRepository(GithubRepositoryT &&value)
const GitLabRepositoryMetadata & GetGitlabRepository() const
AWS_SECURITYAGENT_API IntegratedResourceMetadata(Aws::Utils::Json::JsonView jsonValue)
const BitbucketRepositoryMetadata & GetBitbucketRepository() const
const GitHubRepositoryMetadata & GetGithubRepository() const
AWS_SECURITYAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SECURITYAGENT_API IntegratedResourceMetadata & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SECURITYAGENT_API IntegratedResourceMetadata()=default
const ConfluenceDocumentMetadata & GetConfluenceDocument() const
IntegratedResourceMetadata & WithBitbucketRepository(BitbucketRepositoryT &&value)
IntegratedResourceMetadata & WithGitlabRepository(GitlabRepositoryT &&value)
Aws::Utils::Json::JsonValue JsonValue