AWS SDK for C++  1.9.108
AWS SDK for C++
Destination.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace GuardDuty
24 {
25 namespace Model
26 {
27 
35  {
36  public:
41 
42 
46  inline const Aws::String& GetDestinationId() const{ return m_destinationId; }
47 
51  inline bool DestinationIdHasBeenSet() const { return m_destinationIdHasBeenSet; }
52 
56  inline void SetDestinationId(const Aws::String& value) { m_destinationIdHasBeenSet = true; m_destinationId = value; }
57 
61  inline void SetDestinationId(Aws::String&& value) { m_destinationIdHasBeenSet = true; m_destinationId = std::move(value); }
62 
66  inline void SetDestinationId(const char* value) { m_destinationIdHasBeenSet = true; m_destinationId.assign(value); }
67 
71  inline Destination& WithDestinationId(const Aws::String& value) { SetDestinationId(value); return *this;}
72 
76  inline Destination& WithDestinationId(Aws::String&& value) { SetDestinationId(std::move(value)); return *this;}
77 
81  inline Destination& WithDestinationId(const char* value) { SetDestinationId(value); return *this;}
82 
83 
88  inline const DestinationType& GetDestinationType() const{ return m_destinationType; }
89 
94  inline bool DestinationTypeHasBeenSet() const { return m_destinationTypeHasBeenSet; }
95 
100  inline void SetDestinationType(const DestinationType& value) { m_destinationTypeHasBeenSet = true; m_destinationType = value; }
101 
106  inline void SetDestinationType(DestinationType&& value) { m_destinationTypeHasBeenSet = true; m_destinationType = std::move(value); }
107 
112  inline Destination& WithDestinationType(const DestinationType& value) { SetDestinationType(value); return *this;}
113 
118  inline Destination& WithDestinationType(DestinationType&& value) { SetDestinationType(std::move(value)); return *this;}
119 
120 
124  inline const PublishingStatus& GetStatus() const{ return m_status; }
125 
129  inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
130 
134  inline void SetStatus(const PublishingStatus& value) { m_statusHasBeenSet = true; m_status = value; }
135 
139  inline void SetStatus(PublishingStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
140 
144  inline Destination& WithStatus(const PublishingStatus& value) { SetStatus(value); return *this;}
145 
149  inline Destination& WithStatus(PublishingStatus&& value) { SetStatus(std::move(value)); return *this;}
150 
151  private:
152 
153  Aws::String m_destinationId;
154  bool m_destinationIdHasBeenSet;
155 
156  DestinationType m_destinationType;
157  bool m_destinationTypeHasBeenSet;
158 
159  PublishingStatus m_status;
160  bool m_statusHasBeenSet;
161  };
162 
163 } // namespace Model
164 } // namespace GuardDuty
165 } // namespace Aws
Aws::GuardDuty::Model::Destination::SetDestinationType
void SetDestinationType(const DestinationType &value)
Definition: Destination.h:100
Aws::GuardDuty::Model::Destination::WithDestinationId
Destination & WithDestinationId(Aws::String &&value)
Definition: Destination.h:76
Aws::GuardDuty::Model::Destination::DestinationTypeHasBeenSet
bool DestinationTypeHasBeenSet() const
Definition: Destination.h:94
Aws::GuardDuty::Model::Destination::WithStatus
Destination & WithStatus(PublishingStatus &&value)
Definition: Destination.h:149
Aws::GuardDuty::Model::Destination::SetDestinationId
void SetDestinationId(const Aws::String &value)
Definition: Destination.h:56
Aws::GuardDuty::Model::DestinationType
DestinationType
Definition: DestinationType.h:17
Aws::GuardDuty::Model::Destination::WithDestinationType
Destination & WithDestinationType(const DestinationType &value)
Definition: Destination.h:112
Aws::GuardDuty::Model::Destination::GetStatus
const PublishingStatus & GetStatus() const
Definition: Destination.h:124
PublishingStatus.h
Aws::GuardDuty::Model::PublishingStatus
PublishingStatus
Definition: PublishingStatus.h:17
DestinationType.h
Aws::GuardDuty::Model::Destination::SetStatus
void SetStatus(const PublishingStatus &value)
Definition: Destination.h:134
Aws::GuardDuty::Model::Destination::Destination
Destination(Aws::Utils::Json::JsonView jsonValue)
Aws::GuardDuty::Model::Destination::StatusHasBeenSet
bool StatusHasBeenSet() const
Definition: Destination.h:129
GuardDuty_EXPORTS.h
Aws::GuardDuty::Model::Destination::WithDestinationId
Destination & WithDestinationId(const Aws::String &value)
Definition: Destination.h:71
AWS_GUARDDUTY_API
#define AWS_GUARDDUTY_API
Definition: GuardDuty_EXPORTS.h:28
Aws::GuardDuty::Model::Destination::WithDestinationId
Destination & WithDestinationId(const char *value)
Definition: Destination.h:81
Aws::GuardDuty::Model::Destination::WithDestinationType
Destination & WithDestinationType(DestinationType &&value)
Definition: Destination.h:118
Aws::GuardDuty::Model::Destination::SetDestinationId
void SetDestinationId(Aws::String &&value)
Definition: Destination.h:61
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::GuardDuty::Model::Destination::WithStatus
Destination & WithStatus(const PublishingStatus &value)
Definition: Destination.h:144
Aws::GuardDuty::Model::Destination::SetDestinationType
void SetDestinationType(DestinationType &&value)
Definition: Destination.h:106
Aws::GuardDuty::Model::Destination::GetDestinationType
const DestinationType & GetDestinationType() const
Definition: Destination.h:88
Aws::GuardDuty::Model::Destination::operator=
Destination & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::GuardDuty::Model::Destination::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws
Definition: AccessManagementClient.h:15
Aws::GuardDuty::Model::Destination
Definition: Destination.h:35
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::GuardDuty::Model::Destination::SetStatus
void SetStatus(PublishingStatus &&value)
Definition: Destination.h:139
Aws::GuardDuty::Model::Destination::Destination
Destination()
Aws::GuardDuty::Model::Destination::GetDestinationId
const Aws::String & GetDestinationId() const
Definition: Destination.h:46
Aws::GuardDuty::Model::Destination::DestinationIdHasBeenSet
bool DestinationIdHasBeenSet() const
Definition: Destination.h:51
Aws::GuardDuty::Model::Destination::SetDestinationId
void SetDestinationId(const char *value)
Definition: Destination.h:66