AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
SigningImageFormat.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/signer/Signer_EXPORTS.h>
9#include <aws/signer/model/ImageFormat.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace signer {
21namespace Model {
22
30 public:
31 AWS_SIGNER_API SigningImageFormat() = default;
34 AWS_SIGNER_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::Vector<ImageFormat>& GetSupportedFormats() const { return m_supportedFormats; }
41 inline bool SupportedFormatsHasBeenSet() const { return m_supportedFormatsHasBeenSet; }
42 template <typename SupportedFormatsT = Aws::Vector<ImageFormat>>
43 void SetSupportedFormats(SupportedFormatsT&& value) {
44 m_supportedFormatsHasBeenSet = true;
45 m_supportedFormats = std::forward<SupportedFormatsT>(value);
46 }
47 template <typename SupportedFormatsT = Aws::Vector<ImageFormat>>
48 SigningImageFormat& WithSupportedFormats(SupportedFormatsT&& value) {
49 SetSupportedFormats(std::forward<SupportedFormatsT>(value));
50 return *this;
51 }
53 m_supportedFormatsHasBeenSet = true;
54 m_supportedFormats.push_back(value);
55 return *this;
56 }
58
60
63 inline ImageFormat GetDefaultFormat() const { return m_defaultFormat; }
64 inline bool DefaultFormatHasBeenSet() const { return m_defaultFormatHasBeenSet; }
65 inline void SetDefaultFormat(ImageFormat value) {
66 m_defaultFormatHasBeenSet = true;
67 m_defaultFormat = value;
68 }
70 SetDefaultFormat(value);
71 return *this;
72 }
74 private:
75 Aws::Vector<ImageFormat> m_supportedFormats;
76
77 ImageFormat m_defaultFormat{ImageFormat::NOT_SET};
78 bool m_supportedFormatsHasBeenSet = false;
79 bool m_defaultFormatHasBeenSet = false;
80};
81
82} // namespace Model
83} // namespace signer
84} // namespace Aws
SigningImageFormat & WithSupportedFormats(SupportedFormatsT &&value)
SigningImageFormat & WithDefaultFormat(ImageFormat value)
AWS_SIGNER_API SigningImageFormat & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SIGNER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetSupportedFormats(SupportedFormatsT &&value)
const Aws::Vector< ImageFormat > & GetSupportedFormats() const
AWS_SIGNER_API SigningImageFormat()=default
AWS_SIGNER_API SigningImageFormat(Aws::Utils::Json::JsonView jsonValue)
SigningImageFormat & AddSupportedFormats(ImageFormat value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue