AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Destination.h
1
6#pragma once
7#include <aws/guardduty/GuardDuty_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/guardduty/model/DestinationType.h>
10#include <aws/guardduty/model/PublishingStatus.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 GuardDuty
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_GUARDDUTY_API Destination();
38 AWS_GUARDDUTY_API Destination(Aws::Utils::Json::JsonView jsonValue);
39 AWS_GUARDDUTY_API Destination& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetDestinationId() const{ return m_destinationId; }
48 inline bool DestinationIdHasBeenSet() const { return m_destinationIdHasBeenSet; }
49 inline void SetDestinationId(const Aws::String& value) { m_destinationIdHasBeenSet = true; m_destinationId = value; }
50 inline void SetDestinationId(Aws::String&& value) { m_destinationIdHasBeenSet = true; m_destinationId = std::move(value); }
51 inline void SetDestinationId(const char* value) { m_destinationIdHasBeenSet = true; m_destinationId.assign(value); }
52 inline Destination& WithDestinationId(const Aws::String& value) { SetDestinationId(value); return *this;}
53 inline Destination& WithDestinationId(Aws::String&& value) { SetDestinationId(std::move(value)); return *this;}
54 inline Destination& WithDestinationId(const char* value) { SetDestinationId(value); return *this;}
56
58
62 inline const DestinationType& GetDestinationType() const{ return m_destinationType; }
63 inline bool DestinationTypeHasBeenSet() const { return m_destinationTypeHasBeenSet; }
64 inline void SetDestinationType(const DestinationType& value) { m_destinationTypeHasBeenSet = true; m_destinationType = value; }
65 inline void SetDestinationType(DestinationType&& value) { m_destinationTypeHasBeenSet = true; m_destinationType = std::move(value); }
66 inline Destination& WithDestinationType(const DestinationType& value) { SetDestinationType(value); return *this;}
67 inline Destination& WithDestinationType(DestinationType&& value) { SetDestinationType(std::move(value)); return *this;}
69
71
74 inline const PublishingStatus& GetStatus() const{ return m_status; }
75 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
76 inline void SetStatus(const PublishingStatus& value) { m_statusHasBeenSet = true; m_status = value; }
77 inline void SetStatus(PublishingStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
78 inline Destination& WithStatus(const PublishingStatus& value) { SetStatus(value); return *this;}
79 inline Destination& WithStatus(PublishingStatus&& value) { SetStatus(std::move(value)); return *this;}
81 private:
82
83 Aws::String m_destinationId;
84 bool m_destinationIdHasBeenSet = false;
85
86 DestinationType m_destinationType;
87 bool m_destinationTypeHasBeenSet = false;
88
89 PublishingStatus m_status;
90 bool m_statusHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace GuardDuty
95} // namespace Aws
AWS_GUARDDUTY_API Destination(Aws::Utils::Json::JsonView jsonValue)
Destination & WithDestinationId(Aws::String &&value)
Definition Destination.h:53
void SetStatus(const PublishingStatus &value)
Definition Destination.h:76
void SetDestinationId(const Aws::String &value)
Definition Destination.h:49
const Aws::String & GetDestinationId() const
Definition Destination.h:47
Destination & WithDestinationId(const char *value)
Definition Destination.h:54
void SetDestinationId(Aws::String &&value)
Definition Destination.h:50
Destination & WithStatus(PublishingStatus &&value)
Definition Destination.h:79
Destination & WithDestinationType(const DestinationType &value)
Definition Destination.h:66
const PublishingStatus & GetStatus() const
Definition Destination.h:74
Destination & WithStatus(const PublishingStatus &value)
Definition Destination.h:78
AWS_GUARDDUTY_API Destination & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetDestinationId(const char *value)
Definition Destination.h:51
Destination & WithDestinationId(const Aws::String &value)
Definition Destination.h:52
Destination & WithDestinationType(DestinationType &&value)
Definition Destination.h:67
void SetStatus(PublishingStatus &&value)
Definition Destination.h:77
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
void SetDestinationType(DestinationType &&value)
Definition Destination.h:65
void SetDestinationType(const DestinationType &value)
Definition Destination.h:64
const DestinationType & GetDestinationType() const
Definition Destination.h:62
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue