AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
SetupArtifact.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/observabilityadmin/ObservabilityAdmin_EXPORTS.h>
9#include <aws/observabilityadmin/model/SetupFormat.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace ObservabilityAdmin {
21namespace Model {
22
30 public:
31 AWS_OBSERVABILITYADMIN_API SetupArtifact() = default;
32 AWS_OBSERVABILITYADMIN_API SetupArtifact(Aws::Utils::Json::JsonView jsonValue);
33 AWS_OBSERVABILITYADMIN_API SetupArtifact& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_OBSERVABILITYADMIN_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetFileName() const { return m_fileName; }
41 inline bool FileNameHasBeenSet() const { return m_fileNameHasBeenSet; }
42 template <typename FileNameT = Aws::String>
43 void SetFileName(FileNameT&& value) {
44 m_fileNameHasBeenSet = true;
45 m_fileName = std::forward<FileNameT>(value);
46 }
47 template <typename FileNameT = Aws::String>
48 SetupArtifact& WithFileName(FileNameT&& value) {
49 SetFileName(std::forward<FileNameT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetContent() const { return m_content; }
59 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
60 template <typename ContentT = Aws::String>
61 void SetContent(ContentT&& value) {
62 m_contentHasBeenSet = true;
63 m_content = std::forward<ContentT>(value);
64 }
65 template <typename ContentT = Aws::String>
66 SetupArtifact& WithContent(ContentT&& value) {
67 SetContent(std::forward<ContentT>(value));
68 return *this;
69 }
71
73
76 inline SetupFormat GetFormat() const { return m_format; }
77 inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; }
78 inline void SetFormat(SetupFormat value) {
79 m_formatHasBeenSet = true;
80 m_format = value;
81 }
83 SetFormat(value);
84 return *this;
85 }
87
89
92 inline const Aws::String& GetContentType() const { return m_contentType; }
93 inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; }
94 template <typename ContentTypeT = Aws::String>
95 void SetContentType(ContentTypeT&& value) {
96 m_contentTypeHasBeenSet = true;
97 m_contentType = std::forward<ContentTypeT>(value);
98 }
99 template <typename ContentTypeT = Aws::String>
100 SetupArtifact& WithContentType(ContentTypeT&& value) {
101 SetContentType(std::forward<ContentTypeT>(value));
102 return *this;
103 }
105 private:
106 Aws::String m_fileName;
107
108 Aws::String m_content;
109
111
112 Aws::String m_contentType;
113 bool m_fileNameHasBeenSet = false;
114 bool m_contentHasBeenSet = false;
115 bool m_formatHasBeenSet = false;
116 bool m_contentTypeHasBeenSet = false;
117};
118
119} // namespace Model
120} // namespace ObservabilityAdmin
121} // namespace Aws
SetupArtifact & WithFileName(FileNameT &&value)
AWS_OBSERVABILITYADMIN_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_OBSERVABILITYADMIN_API SetupArtifact()=default
SetupArtifact & WithContentType(ContentTypeT &&value)
const Aws::String & GetContentType() const
AWS_OBSERVABILITYADMIN_API SetupArtifact(Aws::Utils::Json::JsonView jsonValue)
SetupArtifact & WithFormat(SetupFormat value)
AWS_OBSERVABILITYADMIN_API SetupArtifact & operator=(Aws::Utils::Json::JsonView jsonValue)
SetupArtifact & WithContent(ContentT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue