AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AwsRedshiftClusterLoggingStatus.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 AwsRedshiftClusterLoggingStatus() = default;
38 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetBucketName() const { return m_bucketName; }
46 inline bool BucketNameHasBeenSet() const { return m_bucketNameHasBeenSet; }
47 template<typename BucketNameT = Aws::String>
48 void SetBucketName(BucketNameT&& value) { m_bucketNameHasBeenSet = true; m_bucketName = std::forward<BucketNameT>(value); }
49 template<typename BucketNameT = Aws::String>
50 AwsRedshiftClusterLoggingStatus& WithBucketName(BucketNameT&& value) { SetBucketName(std::forward<BucketNameT>(value)); return *this;}
52
54
57 inline const Aws::String& GetLastFailureMessage() const { return m_lastFailureMessage; }
58 inline bool LastFailureMessageHasBeenSet() const { return m_lastFailureMessageHasBeenSet; }
59 template<typename LastFailureMessageT = Aws::String>
60 void SetLastFailureMessage(LastFailureMessageT&& value) { m_lastFailureMessageHasBeenSet = true; m_lastFailureMessage = std::forward<LastFailureMessageT>(value); }
61 template<typename LastFailureMessageT = Aws::String>
62 AwsRedshiftClusterLoggingStatus& WithLastFailureMessage(LastFailureMessageT&& value) { SetLastFailureMessage(std::forward<LastFailureMessageT>(value)); return *this;}
64
66
71 inline const Aws::String& GetLastFailureTime() const { return m_lastFailureTime; }
72 inline bool LastFailureTimeHasBeenSet() const { return m_lastFailureTimeHasBeenSet; }
73 template<typename LastFailureTimeT = Aws::String>
74 void SetLastFailureTime(LastFailureTimeT&& value) { m_lastFailureTimeHasBeenSet = true; m_lastFailureTime = std::forward<LastFailureTimeT>(value); }
75 template<typename LastFailureTimeT = Aws::String>
76 AwsRedshiftClusterLoggingStatus& WithLastFailureTime(LastFailureTimeT&& value) { SetLastFailureTime(std::forward<LastFailureTimeT>(value)); return *this;}
78
80
86 inline const Aws::String& GetLastSuccessfulDeliveryTime() const { return m_lastSuccessfulDeliveryTime; }
87 inline bool LastSuccessfulDeliveryTimeHasBeenSet() const { return m_lastSuccessfulDeliveryTimeHasBeenSet; }
88 template<typename LastSuccessfulDeliveryTimeT = Aws::String>
89 void SetLastSuccessfulDeliveryTime(LastSuccessfulDeliveryTimeT&& value) { m_lastSuccessfulDeliveryTimeHasBeenSet = true; m_lastSuccessfulDeliveryTime = std::forward<LastSuccessfulDeliveryTimeT>(value); }
90 template<typename LastSuccessfulDeliveryTimeT = Aws::String>
91 AwsRedshiftClusterLoggingStatus& WithLastSuccessfulDeliveryTime(LastSuccessfulDeliveryTimeT&& value) { SetLastSuccessfulDeliveryTime(std::forward<LastSuccessfulDeliveryTimeT>(value)); return *this;}
93
95
98 inline bool GetLoggingEnabled() const { return m_loggingEnabled; }
99 inline bool LoggingEnabledHasBeenSet() const { return m_loggingEnabledHasBeenSet; }
100 inline void SetLoggingEnabled(bool value) { m_loggingEnabledHasBeenSet = true; m_loggingEnabled = value; }
101 inline AwsRedshiftClusterLoggingStatus& WithLoggingEnabled(bool value) { SetLoggingEnabled(value); return *this;}
103
105
108 inline const Aws::String& GetS3KeyPrefix() const { return m_s3KeyPrefix; }
109 inline bool S3KeyPrefixHasBeenSet() const { return m_s3KeyPrefixHasBeenSet; }
110 template<typename S3KeyPrefixT = Aws::String>
111 void SetS3KeyPrefix(S3KeyPrefixT&& value) { m_s3KeyPrefixHasBeenSet = true; m_s3KeyPrefix = std::forward<S3KeyPrefixT>(value); }
112 template<typename S3KeyPrefixT = Aws::String>
113 AwsRedshiftClusterLoggingStatus& WithS3KeyPrefix(S3KeyPrefixT&& value) { SetS3KeyPrefix(std::forward<S3KeyPrefixT>(value)); return *this;}
115 private:
116
117 Aws::String m_bucketName;
118 bool m_bucketNameHasBeenSet = false;
119
120 Aws::String m_lastFailureMessage;
121 bool m_lastFailureMessageHasBeenSet = false;
122
123 Aws::String m_lastFailureTime;
124 bool m_lastFailureTimeHasBeenSet = false;
125
126 Aws::String m_lastSuccessfulDeliveryTime;
127 bool m_lastSuccessfulDeliveryTimeHasBeenSet = false;
128
129 bool m_loggingEnabled{false};
130 bool m_loggingEnabledHasBeenSet = false;
131
132 Aws::String m_s3KeyPrefix;
133 bool m_s3KeyPrefixHasBeenSet = false;
134 };
135
136} // namespace Model
137} // namespace SecurityHub
138} // namespace Aws
AwsRedshiftClusterLoggingStatus & WithLastFailureTime(LastFailureTimeT &&value)
void SetLastSuccessfulDeliveryTime(LastSuccessfulDeliveryTimeT &&value)
AWS_SECURITYHUB_API AwsRedshiftClusterLoggingStatus()=default
AwsRedshiftClusterLoggingStatus & WithLastFailureMessage(LastFailureMessageT &&value)
AwsRedshiftClusterLoggingStatus & WithS3KeyPrefix(S3KeyPrefixT &&value)
AwsRedshiftClusterLoggingStatus & WithBucketName(BucketNameT &&value)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AwsRedshiftClusterLoggingStatus & WithLastSuccessfulDeliveryTime(LastSuccessfulDeliveryTimeT &&value)
AWS_SECURITYHUB_API AwsRedshiftClusterLoggingStatus(Aws::Utils::Json::JsonView jsonValue)
AWS_SECURITYHUB_API AwsRedshiftClusterLoggingStatus & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue