AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
BucketAccessLogConfig.h
1
6#pragma once
7#include <aws/lightsail/Lightsail_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Lightsail
22{
23namespace Model
24{
25
37 {
38 public:
39 AWS_LIGHTSAIL_API BucketAccessLogConfig() = default;
42 AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
50 inline bool GetEnabled() const { return m_enabled; }
51 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
52 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
53 inline BucketAccessLogConfig& WithEnabled(bool value) { SetEnabled(value); return *this;}
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) { m_destinationHasBeenSet = true; m_destination = std::forward<DestinationT>(value); }
68 template<typename DestinationT = Aws::String>
69 BucketAccessLogConfig& WithDestination(DestinationT&& value) { SetDestination(std::forward<DestinationT>(value)); return *this;}
71
73
83 inline const Aws::String& GetPrefix() const { return m_prefix; }
84 inline bool PrefixHasBeenSet() const { return m_prefixHasBeenSet; }
85 template<typename PrefixT = Aws::String>
86 void SetPrefix(PrefixT&& value) { m_prefixHasBeenSet = true; m_prefix = std::forward<PrefixT>(value); }
87 template<typename PrefixT = Aws::String>
88 BucketAccessLogConfig& WithPrefix(PrefixT&& value) { SetPrefix(std::forward<PrefixT>(value)); return *this;}
90 private:
91
92 bool m_enabled{false};
93 bool m_enabledHasBeenSet = false;
94
95 Aws::String m_destination;
96 bool m_destinationHasBeenSet = false;
97
98 Aws::String m_prefix;
99 bool m_prefixHasBeenSet = false;
100 };
101
102} // namespace Model
103} // namespace Lightsail
104} // 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