1/*
2* Copyright 2010-2017 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
16#include <aws/s3/model/GetBucketPolicyResult.h>
17#include <aws/core/AmazonWebServiceResult.h>
18#include <aws/core/utils/StringUtils.h>
19
20#include <utility>
21
22using namespace Aws::S3::Model;
23using namespace Aws::Utils::Stream;
24using namespace Aws::Utils;
25using namespace Aws;
26
27GetBucketPolicyResult::GetBucketPolicyResult()
28{
29}
30
31GetBucketPolicyResult::GetBucketPolicyResult(GetBucketPolicyResult&& toMove) :
32 m_policy(std::move(toMove.m_policy))
33{
34}
35
36GetBucketPolicyResult& GetBucketPolicyResult::operator=(GetBucketPolicyResult&& toMove)
37{
38 if(this == &toMove)
39 {
40 return *this;
41 }
42
43 m_policy = std::move(toMove.m_policy);
44
45 return *this;
46}
47
48GetBucketPolicyResult::GetBucketPolicyResult(Aws::AmazonWebServiceResult<ResponseStream>&& result)
49{
50 *this = std::move(result);
51}
52
53GetBucketPolicyResult& GetBucketPolicyResult::operator =(Aws::AmazonWebServiceResult<ResponseStream>&& result)
54{
55 m_policy = result.TakeOwnershipOfPayload();
56
57 return *this;
58}
59