AWS SDK for C++  0.12.9
AWS SDK for C++
DisableLoggingResult.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
20 
21 namespace Aws
22 {
23 template<typename RESULT_TYPE>
24 class AmazonWebServiceResult;
25 
26 namespace Utils
27 {
28 namespace Xml
29 {
30  class XmlDocument;
31 } // namespace Xml
32 } // namespace Utils
33 namespace Redshift
34 {
35 namespace Model
36 {
41  {
42  public:
46 
50  inline bool GetLoggingEnabled() const{ return m_loggingEnabled; }
51 
55  inline void SetLoggingEnabled(bool value) { m_loggingEnabled = value; }
56 
60  inline DisableLoggingResult& WithLoggingEnabled(bool value) { SetLoggingEnabled(value); return *this;}
61 
65  inline const Aws::String& GetBucketName() const{ return m_bucketName; }
66 
70  inline void SetBucketName(const Aws::String& value) { m_bucketName = value; }
71 
75  inline void SetBucketName(Aws::String&& value) { m_bucketName = value; }
76 
80  inline void SetBucketName(const char* value) { m_bucketName.assign(value); }
81 
85  inline DisableLoggingResult& WithBucketName(const Aws::String& value) { SetBucketName(value); return *this;}
86 
90  inline DisableLoggingResult& WithBucketName(Aws::String&& value) { SetBucketName(value); return *this;}
91 
95  inline DisableLoggingResult& WithBucketName(const char* value) { SetBucketName(value); return *this;}
96 
100  inline const Aws::String& GetS3KeyPrefix() const{ return m_s3KeyPrefix; }
101 
105  inline void SetS3KeyPrefix(const Aws::String& value) { m_s3KeyPrefix = value; }
106 
110  inline void SetS3KeyPrefix(Aws::String&& value) { m_s3KeyPrefix = value; }
111 
115  inline void SetS3KeyPrefix(const char* value) { m_s3KeyPrefix.assign(value); }
116 
120  inline DisableLoggingResult& WithS3KeyPrefix(const Aws::String& value) { SetS3KeyPrefix(value); return *this;}
121 
125  inline DisableLoggingResult& WithS3KeyPrefix(Aws::String&& value) { SetS3KeyPrefix(value); return *this;}
126 
130  inline DisableLoggingResult& WithS3KeyPrefix(const char* value) { SetS3KeyPrefix(value); return *this;}
131 
135  inline const Aws::Utils::DateTime& GetLastSuccessfulDeliveryTime() const{ return m_lastSuccessfulDeliveryTime; }
136 
140  inline void SetLastSuccessfulDeliveryTime(const Aws::Utils::DateTime& value) { m_lastSuccessfulDeliveryTime = value; }
141 
145  inline void SetLastSuccessfulDeliveryTime(Aws::Utils::DateTime&& value) { m_lastSuccessfulDeliveryTime = value; }
146 
150  inline DisableLoggingResult& WithLastSuccessfulDeliveryTime(const Aws::Utils::DateTime& value) { SetLastSuccessfulDeliveryTime(value); return *this;}
151 
155  inline DisableLoggingResult& WithLastSuccessfulDeliveryTime(Aws::Utils::DateTime&& value) { SetLastSuccessfulDeliveryTime(value); return *this;}
156 
160  inline const Aws::Utils::DateTime& GetLastFailureTime() const{ return m_lastFailureTime; }
161 
165  inline void SetLastFailureTime(const Aws::Utils::DateTime& value) { m_lastFailureTime = value; }
166 
170  inline void SetLastFailureTime(Aws::Utils::DateTime&& value) { m_lastFailureTime = value; }
171 
175  inline DisableLoggingResult& WithLastFailureTime(const Aws::Utils::DateTime& value) { SetLastFailureTime(value); return *this;}
176 
180  inline DisableLoggingResult& WithLastFailureTime(Aws::Utils::DateTime&& value) { SetLastFailureTime(value); return *this;}
181 
185  inline const Aws::String& GetLastFailureMessage() const{ return m_lastFailureMessage; }
186 
190  inline void SetLastFailureMessage(const Aws::String& value) { m_lastFailureMessage = value; }
191 
195  inline void SetLastFailureMessage(Aws::String&& value) { m_lastFailureMessage = value; }
196 
200  inline void SetLastFailureMessage(const char* value) { m_lastFailureMessage.assign(value); }
201 
205  inline DisableLoggingResult& WithLastFailureMessage(const Aws::String& value) { SetLastFailureMessage(value); return *this;}
206 
210  inline DisableLoggingResult& WithLastFailureMessage(Aws::String&& value) { SetLastFailureMessage(value); return *this;}
211 
215  inline DisableLoggingResult& WithLastFailureMessage(const char* value) { SetLastFailureMessage(value); return *this;}
216 
217 
218  inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
219 
220 
221  inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
222 
223 
224  inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = value; }
225 
226 
227  inline DisableLoggingResult& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;}
228 
229 
230  inline DisableLoggingResult& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(value); return *this;}
231 
232  private:
233  bool m_loggingEnabled;
234  Aws::String m_bucketName;
235  Aws::String m_s3KeyPrefix;
236  Aws::Utils::DateTime m_lastSuccessfulDeliveryTime;
237  Aws::Utils::DateTime m_lastFailureTime;
238  Aws::String m_lastFailureMessage;
239  ResponseMetadata m_responseMetadata;
240  };
241 
242 } // namespace Model
243 } // namespace Redshift
244 } // namespace Aws
DisableLoggingResult & WithS3KeyPrefix(Aws::String &&value)
DisableLoggingResult & WithS3KeyPrefix(const Aws::String &value)
void SetLastFailureTime(Aws::Utils::DateTime &&value)
DisableLoggingResult & WithLastSuccessfulDeliveryTime(Aws::Utils::DateTime &&value)
DisableLoggingResult & WithBucketName(const Aws::String &value)
void SetResponseMetadata(ResponseMetadata &&value)
DisableLoggingResult & WithResponseMetadata(const ResponseMetadata &value)
const Aws::String & GetLastFailureMessage() const
void SetS3KeyPrefix(const Aws::String &value)
void SetLastFailureMessage(const Aws::String &value)
DisableLoggingResult & WithBucketName(Aws::String &&value)
#define AWS_REDSHIFT_API
DisableLoggingResult & WithLastFailureMessage(const char *value)
void SetBucketName(const Aws::String &value)
const Aws::Utils::DateTime & GetLastSuccessfulDeliveryTime() const
DisableLoggingResult & WithLastFailureMessage(Aws::String &&value)
void SetLastSuccessfulDeliveryTime(const Aws::Utils::DateTime &value)
void SetLastFailureTime(const Aws::Utils::DateTime &value)
DisableLoggingResult & WithResponseMetadata(ResponseMetadata &&value)
DisableLoggingResult & WithLastFailureTime(const Aws::Utils::DateTime &value)
DisableLoggingResult & WithS3KeyPrefix(const char *value)
DisableLoggingResult & WithLastFailureTime(Aws::Utils::DateTime &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
const Aws::Utils::DateTime & GetLastFailureTime() const
DisableLoggingResult & WithBucketName(const char *value)
void SetResponseMetadata(const ResponseMetadata &value)
void SetLastSuccessfulDeliveryTime(Aws::Utils::DateTime &&value)
DisableLoggingResult & WithLastSuccessfulDeliveryTime(const Aws::Utils::DateTime &value)
const ResponseMetadata & GetResponseMetadata() const
DisableLoggingResult & WithLastFailureMessage(const Aws::String &value)
JSON (JavaScript Object Notation).
DisableLoggingResult & WithLoggingEnabled(bool value)