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/cloudtrail/CloudTrail_EXPORTS.h>
8#include <aws/cloudtrail/model/DestinationType.h>
9#include <aws/core/utils/memory/stl/AWSString.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 CloudTrail
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_CLOUDTRAIL_API Destination();
37 AWS_CLOUDTRAIL_API Destination(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CLOUDTRAIL_API Destination& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CLOUDTRAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
48 inline const DestinationType& GetType() const{ return m_type; }
49 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
50 inline void SetType(const DestinationType& value) { m_typeHasBeenSet = true; m_type = value; }
51 inline void SetType(DestinationType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
52 inline Destination& WithType(const DestinationType& value) { SetType(value); return *this;}
53 inline Destination& WithType(DestinationType&& value) { SetType(std::move(value)); return *this;}
55
57
62 inline const Aws::String& GetLocation() const{ return m_location; }
63 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
64 inline void SetLocation(const Aws::String& value) { m_locationHasBeenSet = true; m_location = value; }
65 inline void SetLocation(Aws::String&& value) { m_locationHasBeenSet = true; m_location = std::move(value); }
66 inline void SetLocation(const char* value) { m_locationHasBeenSet = true; m_location.assign(value); }
67 inline Destination& WithLocation(const Aws::String& value) { SetLocation(value); return *this;}
68 inline Destination& WithLocation(Aws::String&& value) { SetLocation(std::move(value)); return *this;}
69 inline Destination& WithLocation(const char* value) { SetLocation(value); return *this;}
71 private:
72
73 DestinationType m_type;
74 bool m_typeHasBeenSet = false;
75
76 Aws::String m_location;
77 bool m_locationHasBeenSet = false;
78 };
79
80} // namespace Model
81} // namespace CloudTrail
82} // namespace Aws
void SetType(DestinationType &&value)
Definition Destination.h:51
AWS_CLOUDTRAIL_API Destination()
Destination & WithLocation(const char *value)
Definition Destination.h:69
AWS_CLOUDTRAIL_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CLOUDTRAIL_API Destination & operator=(Aws::Utils::Json::JsonView jsonValue)
const DestinationType & GetType() const
Definition Destination.h:48
void SetLocation(const char *value)
Definition Destination.h:66
Destination & WithType(const DestinationType &value)
Definition Destination.h:52
void SetType(const DestinationType &value)
Definition Destination.h:50
void SetLocation(const Aws::String &value)
Definition Destination.h:64
Destination & WithType(DestinationType &&value)
Definition Destination.h:53
Destination & WithLocation(const Aws::String &value)
Definition Destination.h:67
const Aws::String & GetLocation() const
Definition Destination.h:62
void SetLocation(Aws::String &&value)
Definition Destination.h:65
AWS_CLOUDTRAIL_API Destination(Aws::Utils::Json::JsonView jsonValue)
Destination & WithLocation(Aws::String &&value)
Definition Destination.h:68
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue