AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AttachmentOutput.h
1
6#pragma once
7#include <aws/qbusiness/QBusiness_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/qbusiness/model/AttachmentStatus.h>
10#include <aws/qbusiness/model/ErrorDetail.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace QBusiness
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_QBUSINESS_API AttachmentOutput();
37 AWS_QBUSINESS_API AttachmentOutput(Aws::Utils::Json::JsonView jsonValue);
39 AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetName() const{ return m_name; }
47 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
48 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
49 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
50 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
51 inline AttachmentOutput& WithName(const Aws::String& value) { SetName(value); return *this;}
52 inline AttachmentOutput& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
53 inline AttachmentOutput& WithName(const char* value) { SetName(value); return *this;}
55
57
60 inline const AttachmentStatus& GetStatus() const{ return m_status; }
61 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
62 inline void SetStatus(const AttachmentStatus& value) { m_statusHasBeenSet = true; m_status = value; }
63 inline void SetStatus(AttachmentStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
64 inline AttachmentOutput& WithStatus(const AttachmentStatus& value) { SetStatus(value); return *this;}
65 inline AttachmentOutput& WithStatus(AttachmentStatus&& value) { SetStatus(std::move(value)); return *this;}
67
69
72 inline const ErrorDetail& GetError() const{ return m_error; }
73 inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
74 inline void SetError(const ErrorDetail& value) { m_errorHasBeenSet = true; m_error = value; }
75 inline void SetError(ErrorDetail&& value) { m_errorHasBeenSet = true; m_error = std::move(value); }
76 inline AttachmentOutput& WithError(const ErrorDetail& value) { SetError(value); return *this;}
77 inline AttachmentOutput& WithError(ErrorDetail&& value) { SetError(std::move(value)); return *this;}
79 private:
80
81 Aws::String m_name;
82 bool m_nameHasBeenSet = false;
83
84 AttachmentStatus m_status;
85 bool m_statusHasBeenSet = false;
86
87 ErrorDetail m_error;
88 bool m_errorHasBeenSet = false;
89 };
90
91} // namespace Model
92} // namespace QBusiness
93} // namespace Aws
AWS_QBUSINESS_API AttachmentOutput & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetName() const
AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const
AttachmentOutput & WithName(Aws::String &&value)
AttachmentOutput & WithName(const Aws::String &value)
void SetStatus(AttachmentStatus &&value)
const AttachmentStatus & GetStatus() const
AttachmentOutput & WithStatus(const AttachmentStatus &value)
const ErrorDetail & GetError() const
AttachmentOutput & WithName(const char *value)
AttachmentOutput & WithError(const ErrorDetail &value)
void SetName(const Aws::String &value)
void SetError(const ErrorDetail &value)
AWS_QBUSINESS_API AttachmentOutput(Aws::Utils::Json::JsonView jsonValue)
AttachmentOutput & WithStatus(AttachmentStatus &&value)
void SetStatus(const AttachmentStatus &value)
AttachmentOutput & WithError(ErrorDetail &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue