AWS SDK for C++

AWS SDK for C++ Version 1.11.924

Loading...
Searching...
No Matches
DestinationTarget.h
1
6#pragma once
7#include <aws/continuum/Continuum_EXPORTS.h>
8#include <aws/continuum/model/GitHubTarget.h>
9#include <aws/continuum/model/S3Target.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Continuum {
21namespace Model {
22
30 public:
31 AWS_CONTINUUM_API DestinationTarget() = default;
32 AWS_CONTINUUM_API DestinationTarget(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CONTINUUM_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const S3Target& GetS3() const { return m_s3; }
41 inline bool S3HasBeenSet() const { return m_s3HasBeenSet; }
42 template <typename S3T = S3Target>
43 void SetS3(S3T&& value) {
44 m_s3HasBeenSet = true;
45 m_s3 = std::forward<S3T>(value);
46 }
47 template <typename S3T = S3Target>
48 DestinationTarget& WithS3(S3T&& value) {
49 SetS3(std::forward<S3T>(value));
50 return *this;
51 }
53
55
59 inline const GitHubTarget& GetGithub() const { return m_github; }
60 inline bool GithubHasBeenSet() const { return m_githubHasBeenSet; }
61 template <typename GithubT = GitHubTarget>
62 void SetGithub(GithubT&& value) {
63 m_githubHasBeenSet = true;
64 m_github = std::forward<GithubT>(value);
65 }
66 template <typename GithubT = GitHubTarget>
67 DestinationTarget& WithGithub(GithubT&& value) {
68 SetGithub(std::forward<GithubT>(value));
69 return *this;
70 }
72 private:
73 S3Target m_s3;
74
75 GitHubTarget m_github;
76 bool m_s3HasBeenSet = false;
77 bool m_githubHasBeenSet = false;
78};
79
80} // namespace Model
81} // namespace Continuum
82} // namespace Aws
AWS_CONTINUUM_API DestinationTarget(Aws::Utils::Json::JsonView jsonValue)
DestinationTarget & WithS3(S3T &&value)
AWS_CONTINUUM_API DestinationTarget()=default
AWS_CONTINUUM_API Aws::Utils::Json::JsonValue Jsonize() const
DestinationTarget & WithGithub(GithubT &&value)
AWS_CONTINUUM_API DestinationTarget & operator=(Aws::Utils::Json::JsonView jsonValue)
const GitHubTarget & GetGithub() const
Aws::Utils::Json::JsonValue JsonValue