AWS SDK for C++  0.14.3
AWS SDK for C++
GetBucketVersioningResult.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
16 #include <aws/s3/S3_EXPORTS.h>
19 
20 namespace Aws
21 {
22 template<typename RESULT_TYPE>
23 class AmazonWebServiceResult;
24 
25 namespace Utils
26 {
27 namespace Xml
28 {
29  class XmlDocument;
30 } // namespace Xml
31 } // namespace Utils
32 namespace S3
33 {
34 namespace Model
35 {
37  {
38  public:
42 
46  inline const BucketVersioningStatus& GetStatus() const{ return m_status; }
47 
51  inline void SetStatus(const BucketVersioningStatus& value) { m_status = value; }
52 
56  inline void SetStatus(BucketVersioningStatus&& value) { m_status = value; }
57 
61  inline GetBucketVersioningResult& WithStatus(const BucketVersioningStatus& value) { SetStatus(value); return *this;}
62 
66  inline GetBucketVersioningResult& WithStatus(BucketVersioningStatus&& value) { SetStatus(value); return *this;}
67 
73  inline const MFADeleteStatus& GetMFADelete() const{ return m_mFADelete; }
74 
80  inline void SetMFADelete(const MFADeleteStatus& value) { m_mFADelete = value; }
81 
87  inline void SetMFADelete(MFADeleteStatus&& value) { m_mFADelete = value; }
88 
94  inline GetBucketVersioningResult& WithMFADelete(const MFADeleteStatus& value) { SetMFADelete(value); return *this;}
95 
101  inline GetBucketVersioningResult& WithMFADelete(MFADeleteStatus&& value) { SetMFADelete(value); return *this;}
102 
103  private:
104  BucketVersioningStatus m_status;
105  MFADeleteStatus m_mFADelete;
106  };
107 
108 } // namespace Model
109 } // namespace S3
110 } // namespace Aws
const BucketVersioningStatus & GetStatus() const
void SetMFADelete(const MFADeleteStatus &value)
GetBucketVersioningResult & WithMFADelete(const MFADeleteStatus &value)
#define AWS_S3_API
Definition: S3_EXPORTS.h:37
const MFADeleteStatus & GetMFADelete() const
GetBucketVersioningResult & WithStatus(BucketVersioningStatus &&value)
void SetStatus(BucketVersioningStatus &&value)
GetBucketVersioningResult & WithMFADelete(MFADeleteStatus &&value)
void SetStatus(const BucketVersioningStatus &value)
GetBucketVersioningResult & WithStatus(const BucketVersioningStatus &value)
JSON (JavaScript Object Notation).