AWS SDK for C++

AWS SDK for C++ Version 1.11.743

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
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace CloudTrail {
21namespace Model {
22
30 public:
31 AWS_CLOUDTRAIL_API Destination() = default;
32 AWS_CLOUDTRAIL_API Destination(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CLOUDTRAIL_API Destination& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CLOUDTRAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
42 inline DestinationType GetType() const { return m_type; }
43 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
44 inline void SetType(DestinationType value) {
45 m_typeHasBeenSet = true;
46 m_type = value;
47 }
49 SetType(value);
50 return *this;
51 }
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) {
64 m_locationHasBeenSet = true;
65 m_location = std::forward<LocationT>(value);
66 }
67 template <typename LocationT = Aws::String>
68 Destination& WithLocation(LocationT&& value) {
69 SetLocation(std::forward<LocationT>(value));
70 return *this;
71 }
73 private:
75
76 Aws::String m_location;
77 bool m_typeHasBeenSet = false;
78 bool m_locationHasBeenSet = false;
79};
80
81} // namespace Model
82} // namespace CloudTrail
83} // 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:42
Destination & WithLocation(LocationT &&value)
Definition Destination.h:68
void SetType(DestinationType value)
Definition Destination.h:44
void SetLocation(LocationT &&value)
Definition Destination.h:63
Destination & WithType(DestinationType value)
Definition Destination.h:48
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