AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetDestination(const Aws::String& value) { m_destinationHasBeenSet = true; m_destination = value; }
67 inline void SetDestination(Aws::String&& value) { m_destinationHasBeenSet = true; m_destination = std::move(value); }
68 inline void SetDestination(const char* value) { m_destinationHasBeenSet = true; m_destination.assign(value); }
69 inline BucketAccessLogConfig& WithDestination(const Aws::String& value) { SetDestination(value); return *this;}
70 inline BucketAccessLogConfig& WithDestination(Aws::String&& value) { SetDestination(std::move(value)); return *this;}
71 inline BucketAccessLogConfig& WithDestination(const char* value) { SetDestination(value); return *this;}
73
75
85 inline const Aws::String& GetPrefix() const{ return m_prefix; }
86 inline bool PrefixHasBeenSet() const { return m_prefixHasBeenSet; }
87 inline void SetPrefix(const Aws::String& value) { m_prefixHasBeenSet = true; m_prefix = value; }
88 inline void SetPrefix(Aws::String&& value) { m_prefixHasBeenSet = true; m_prefix = std::move(value); }
89 inline void SetPrefix(const char* value) { m_prefixHasBeenSet = true; m_prefix.assign(value); }
90 inline BucketAccessLogConfig& WithPrefix(const Aws::String& value) { SetPrefix(value); return *this;}
91 inline BucketAccessLogConfig& WithPrefix(Aws::String&& value) { SetPrefix(std::move(value)); return *this;}
92 inline BucketAccessLogConfig& WithPrefix(const char* value) { SetPrefix(value); return *this;}
94 private:
95
96 bool m_enabled;
97 bool m_enabledHasBeenSet = false;
98
99 Aws::String m_destination;
100 bool m_destinationHasBeenSet = false;
101
102 Aws::String m_prefix;
103 bool m_prefixHasBeenSet = false;
104 };
105
106} // namespace Model
107} // namespace Lightsail
108} // namespace Aws
BucketAccessLogConfig & WithDestination(Aws::String &&value)
BucketAccessLogConfig & WithDestination(const char *value)
AWS_LIGHTSAIL_API BucketAccessLogConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
BucketAccessLogConfig & WithDestination(const Aws::String &value)
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
BucketAccessLogConfig & WithEnabled(bool value)
AWS_LIGHTSAIL_API BucketAccessLogConfig(Aws::Utils::Json::JsonView jsonValue)
BucketAccessLogConfig & WithPrefix(Aws::String &&value)
BucketAccessLogConfig & WithPrefix(const char *value)
BucketAccessLogConfig & WithPrefix(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue