AWS SDK for C++

AWS SDK for C++ Version 1.11.746

Loading...
Searching...
No Matches
VisualReferenceOutput.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/synthetics/Synthetics_EXPORTS.h>
10#include <aws/synthetics/model/BaseScreenshot.h>
11#include <aws/synthetics/model/BrowserType.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Synthetics {
23namespace Model {
24
36 public:
37 AWS_SYNTHETICS_API VisualReferenceOutput() = default;
40 AWS_SYNTHETICS_API Aws::Utils::Json::JsonValue Jsonize() const;
41
43
47 inline const Aws::Vector<BaseScreenshot>& GetBaseScreenshots() const { return m_baseScreenshots; }
48 inline bool BaseScreenshotsHasBeenSet() const { return m_baseScreenshotsHasBeenSet; }
49 template <typename BaseScreenshotsT = Aws::Vector<BaseScreenshot>>
50 void SetBaseScreenshots(BaseScreenshotsT&& value) {
51 m_baseScreenshotsHasBeenSet = true;
52 m_baseScreenshots = std::forward<BaseScreenshotsT>(value);
53 }
54 template <typename BaseScreenshotsT = Aws::Vector<BaseScreenshot>>
55 VisualReferenceOutput& WithBaseScreenshots(BaseScreenshotsT&& value) {
56 SetBaseScreenshots(std::forward<BaseScreenshotsT>(value));
57 return *this;
58 }
59 template <typename BaseScreenshotsT = BaseScreenshot>
60 VisualReferenceOutput& AddBaseScreenshots(BaseScreenshotsT&& value) {
61 m_baseScreenshotsHasBeenSet = true;
62 m_baseScreenshots.emplace_back(std::forward<BaseScreenshotsT>(value));
63 return *this;
64 }
66
68
72 inline const Aws::String& GetBaseCanaryRunId() const { return m_baseCanaryRunId; }
73 inline bool BaseCanaryRunIdHasBeenSet() const { return m_baseCanaryRunIdHasBeenSet; }
74 template <typename BaseCanaryRunIdT = Aws::String>
75 void SetBaseCanaryRunId(BaseCanaryRunIdT&& value) {
76 m_baseCanaryRunIdHasBeenSet = true;
77 m_baseCanaryRunId = std::forward<BaseCanaryRunIdT>(value);
78 }
79 template <typename BaseCanaryRunIdT = Aws::String>
80 VisualReferenceOutput& WithBaseCanaryRunId(BaseCanaryRunIdT&& value) {
81 SetBaseCanaryRunId(std::forward<BaseCanaryRunIdT>(value));
82 return *this;
83 }
85
87
90 inline BrowserType GetBrowserType() const { return m_browserType; }
91 inline bool BrowserTypeHasBeenSet() const { return m_browserTypeHasBeenSet; }
92 inline void SetBrowserType(BrowserType value) {
93 m_browserTypeHasBeenSet = true;
94 m_browserType = value;
95 }
97 SetBrowserType(value);
98 return *this;
99 }
101 private:
102 Aws::Vector<BaseScreenshot> m_baseScreenshots;
103
104 Aws::String m_baseCanaryRunId;
105
106 BrowserType m_browserType{BrowserType::NOT_SET};
107 bool m_baseScreenshotsHasBeenSet = false;
108 bool m_baseCanaryRunIdHasBeenSet = false;
109 bool m_browserTypeHasBeenSet = false;
110};
111
112} // namespace Model
113} // namespace Synthetics
114} // namespace Aws
AWS_SYNTHETICS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SYNTHETICS_API VisualReferenceOutput()=default
VisualReferenceOutput & WithBrowserType(BrowserType value)
AWS_SYNTHETICS_API VisualReferenceOutput & operator=(Aws::Utils::Json::JsonView jsonValue)
VisualReferenceOutput & WithBaseScreenshots(BaseScreenshotsT &&value)
const Aws::Vector< BaseScreenshot > & GetBaseScreenshots() const
VisualReferenceOutput & AddBaseScreenshots(BaseScreenshotsT &&value)
AWS_SYNTHETICS_API VisualReferenceOutput(Aws::Utils::Json::JsonView jsonValue)
VisualReferenceOutput & WithBaseCanaryRunId(BaseCanaryRunIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue