AWS SDK for C++

AWS SDK for C++ Version 1.11.683

Loading...
Searching...
No Matches
BucketAccessLogConfig.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/lightsail/Lightsail_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Lightsail {
20namespace Model {
21
33 public:
34 AWS_LIGHTSAIL_API BucketAccessLogConfig() = default;
37 AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
44 inline bool GetEnabled() const { return m_enabled; }
45 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
46 inline void SetEnabled(bool value) {
47 m_enabledHasBeenSet = true;
48 m_enabled = value;
49 }
50 inline BucketAccessLogConfig& WithEnabled(bool value) {
51 SetEnabled(value);
52 return *this;
53 }
55
57
64 inline const Aws::String& GetDestination() const { return m_destination; }
65 inline bool DestinationHasBeenSet() const { return m_destinationHasBeenSet; }
66 template <typename DestinationT = Aws::String>
67 void SetDestination(DestinationT&& value) {
68 m_destinationHasBeenSet = true;
69 m_destination = std::forward<DestinationT>(value);
70 }
71 template <typename DestinationT = Aws::String>
72 BucketAccessLogConfig& WithDestination(DestinationT&& value) {
73 SetDestination(std::forward<DestinationT>(value));
74 return *this;
75 }
77
79
89 inline const Aws::String& GetPrefix() const { return m_prefix; }
90 inline bool PrefixHasBeenSet() const { return m_prefixHasBeenSet; }
91 template <typename PrefixT = Aws::String>
92 void SetPrefix(PrefixT&& value) {
93 m_prefixHasBeenSet = true;
94 m_prefix = std::forward<PrefixT>(value);
95 }
96 template <typename PrefixT = Aws::String>
98 SetPrefix(std::forward<PrefixT>(value));
99 return *this;
100 }
102 private:
103 bool m_enabled{false};
104 bool m_enabledHasBeenSet = false;
105
106 Aws::String m_destination;
107 bool m_destinationHasBeenSet = false;
108
109 Aws::String m_prefix;
110 bool m_prefixHasBeenSet = false;
111};
112
113} // namespace Model
114} // namespace Lightsail
115} // namespace Aws
BucketAccessLogConfig & WithPrefix(PrefixT &&value)
AWS_LIGHTSAIL_API BucketAccessLogConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_LIGHTSAIL_API BucketAccessLogConfig()=default
BucketAccessLogConfig & WithEnabled(bool value)
AWS_LIGHTSAIL_API BucketAccessLogConfig(Aws::Utils::Json::JsonView jsonValue)
BucketAccessLogConfig & WithDestination(DestinationT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue