AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AwsCloudFrontDistributionLogging.h
1
6#pragma once
7#include <aws/securityhub/SecurityHub_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 SecurityHub
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_SECURITYHUB_API AwsCloudFrontDistributionLogging() = default;
38 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetBucket() const { return m_bucket; }
46 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
47 template<typename BucketT = Aws::String>
48 void SetBucket(BucketT&& value) { m_bucketHasBeenSet = true; m_bucket = std::forward<BucketT>(value); }
49 template<typename BucketT = Aws::String>
50 AwsCloudFrontDistributionLogging& WithBucket(BucketT&& value) { SetBucket(std::forward<BucketT>(value)); return *this;}
52
54
57 inline bool GetEnabled() const { return m_enabled; }
58 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
59 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
60 inline AwsCloudFrontDistributionLogging& WithEnabled(bool value) { SetEnabled(value); return *this;}
62
64
67 inline bool GetIncludeCookies() const { return m_includeCookies; }
68 inline bool IncludeCookiesHasBeenSet() const { return m_includeCookiesHasBeenSet; }
69 inline void SetIncludeCookies(bool value) { m_includeCookiesHasBeenSet = true; m_includeCookies = value; }
70 inline AwsCloudFrontDistributionLogging& WithIncludeCookies(bool value) { SetIncludeCookies(value); return *this;}
72
74
78 inline const Aws::String& GetPrefix() const { return m_prefix; }
79 inline bool PrefixHasBeenSet() const { return m_prefixHasBeenSet; }
80 template<typename PrefixT = Aws::String>
81 void SetPrefix(PrefixT&& value) { m_prefixHasBeenSet = true; m_prefix = std::forward<PrefixT>(value); }
82 template<typename PrefixT = Aws::String>
83 AwsCloudFrontDistributionLogging& WithPrefix(PrefixT&& value) { SetPrefix(std::forward<PrefixT>(value)); return *this;}
85 private:
86
87 Aws::String m_bucket;
88 bool m_bucketHasBeenSet = false;
89
90 bool m_enabled{false};
91 bool m_enabledHasBeenSet = false;
92
93 bool m_includeCookies{false};
94 bool m_includeCookiesHasBeenSet = false;
95
96 Aws::String m_prefix;
97 bool m_prefixHasBeenSet = false;
98 };
99
100} // namespace Model
101} // namespace SecurityHub
102} // namespace Aws
AWS_SECURITYHUB_API AwsCloudFrontDistributionLogging(Aws::Utils::Json::JsonView jsonValue)
AwsCloudFrontDistributionLogging & WithBucket(BucketT &&value)
AwsCloudFrontDistributionLogging & WithPrefix(PrefixT &&value)
AwsCloudFrontDistributionLogging & WithIncludeCookies(bool value)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SECURITYHUB_API AwsCloudFrontDistributionLogging()=default
AWS_SECURITYHUB_API AwsCloudFrontDistributionLogging & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue