AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
StaticFileSource.h
1
6#pragma once
7#include <aws/quicksight/QuickSight_EXPORTS.h>
8#include <aws/quicksight/model/StaticFileS3SourceOptions.h>
9#include <aws/quicksight/model/StaticFileUrlSourceOptions.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace QuickSight {
21namespace Model {
22
29 public:
30 AWS_QUICKSIGHT_API StaticFileSource() = default;
31 AWS_QUICKSIGHT_API StaticFileSource(Aws::Utils::Json::JsonView jsonValue);
33 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const StaticFileUrlSourceOptions& GetUrlOptions() const { return m_urlOptions; }
40 inline bool UrlOptionsHasBeenSet() const { return m_urlOptionsHasBeenSet; }
41 template <typename UrlOptionsT = StaticFileUrlSourceOptions>
42 void SetUrlOptions(UrlOptionsT&& value) {
43 m_urlOptionsHasBeenSet = true;
44 m_urlOptions = std::forward<UrlOptionsT>(value);
45 }
46 template <typename UrlOptionsT = StaticFileUrlSourceOptions>
47 StaticFileSource& WithUrlOptions(UrlOptionsT&& value) {
48 SetUrlOptions(std::forward<UrlOptionsT>(value));
49 return *this;
50 }
52
54
58 inline const StaticFileS3SourceOptions& GetS3Options() const { return m_s3Options; }
59 inline bool S3OptionsHasBeenSet() const { return m_s3OptionsHasBeenSet; }
60 template <typename S3OptionsT = StaticFileS3SourceOptions>
61 void SetS3Options(S3OptionsT&& value) {
62 m_s3OptionsHasBeenSet = true;
63 m_s3Options = std::forward<S3OptionsT>(value);
64 }
65 template <typename S3OptionsT = StaticFileS3SourceOptions>
66 StaticFileSource& WithS3Options(S3OptionsT&& value) {
67 SetS3Options(std::forward<S3OptionsT>(value));
68 return *this;
69 }
71 private:
72 StaticFileUrlSourceOptions m_urlOptions;
73
74 StaticFileS3SourceOptions m_s3Options;
75 bool m_urlOptionsHasBeenSet = false;
76 bool m_s3OptionsHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace QuickSight
81} // namespace Aws
AWS_QUICKSIGHT_API StaticFileSource & operator=(Aws::Utils::Json::JsonView jsonValue)
const StaticFileS3SourceOptions & GetS3Options() const
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
StaticFileSource & WithUrlOptions(UrlOptionsT &&value)
const StaticFileUrlSourceOptions & GetUrlOptions() const
AWS_QUICKSIGHT_API StaticFileSource()=default
StaticFileSource & WithS3Options(S3OptionsT &&value)
AWS_QUICKSIGHT_API StaticFileSource(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue