AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 DestinationType GetType() const { return m_type; }
49 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
50 inline void SetType(DestinationType value) { m_typeHasBeenSet = true; m_type = value; }
51 inline Destination& WithType(DestinationType value) { SetType(value); return *this;}
53
55
60 inline const Aws::String& GetLocation() const { return m_location; }
61 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
62 template<typename LocationT = Aws::String>
63 void SetLocation(LocationT&& value) { m_locationHasBeenSet = true; m_location = std::forward<LocationT>(value); }
64 template<typename LocationT = Aws::String>
65 Destination& WithLocation(LocationT&& value) { SetLocation(std::forward<LocationT>(value)); return *this;}
67 private:
68
70 bool m_typeHasBeenSet = false;
71
72 Aws::String m_location;
73 bool m_locationHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace CloudTrail
78} // namespace Aws
AWS_CLOUDTRAIL_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CLOUDTRAIL_API Destination & operator=(Aws::Utils::Json::JsonView jsonValue)
DestinationType GetType() const
Definition Destination.h:48
Destination & WithLocation(LocationT &&value)
Definition Destination.h:65
void SetType(DestinationType value)
Definition Destination.h:50
void SetLocation(LocationT &&value)
Definition Destination.h:63
Destination & WithType(DestinationType value)
Definition Destination.h:51
const Aws::String & GetLocation() const
Definition Destination.h:60
AWS_CLOUDTRAIL_API Destination(Aws::Utils::Json::JsonView jsonValue)
AWS_CLOUDTRAIL_API Destination()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue