AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
SigningImageFormat.h
1
6#pragma once
7#include <aws/signer/Signer_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/signer/model/ImageFormat.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace signer
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_SIGNER_API SigningImageFormat() = default;
39 AWS_SIGNER_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::Vector<ImageFormat>& GetSupportedFormats() const { return m_supportedFormats; }
47 inline bool SupportedFormatsHasBeenSet() const { return m_supportedFormatsHasBeenSet; }
48 template<typename SupportedFormatsT = Aws::Vector<ImageFormat>>
49 void SetSupportedFormats(SupportedFormatsT&& value) { m_supportedFormatsHasBeenSet = true; m_supportedFormats = std::forward<SupportedFormatsT>(value); }
50 template<typename SupportedFormatsT = Aws::Vector<ImageFormat>>
51 SigningImageFormat& WithSupportedFormats(SupportedFormatsT&& value) { SetSupportedFormats(std::forward<SupportedFormatsT>(value)); return *this;}
52 inline SigningImageFormat& AddSupportedFormats(ImageFormat value) { m_supportedFormatsHasBeenSet = true; m_supportedFormats.push_back(value); return *this; }
54
56
59 inline ImageFormat GetDefaultFormat() const { return m_defaultFormat; }
60 inline bool DefaultFormatHasBeenSet() const { return m_defaultFormatHasBeenSet; }
61 inline void SetDefaultFormat(ImageFormat value) { m_defaultFormatHasBeenSet = true; m_defaultFormat = value; }
62 inline SigningImageFormat& WithDefaultFormat(ImageFormat value) { SetDefaultFormat(value); return *this;}
64 private:
65
66 Aws::Vector<ImageFormat> m_supportedFormats;
67 bool m_supportedFormatsHasBeenSet = false;
68
69 ImageFormat m_defaultFormat{ImageFormat::NOT_SET};
70 bool m_defaultFormatHasBeenSet = false;
71 };
72
73} // namespace Model
74} // namespace signer
75} // 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