Skip to content

Commit

Permalink
Add HeadBucket result (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
antonio2368 authored and nickitat committed Jan 23, 2024
1 parent ee0076a commit 7c686c6
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
#include <aws/s3/model/GetPublicAccessBlockResult.h>
#include <aws/s3/model/HeadBucketResult.h>
#include <aws/s3/model/HeadObjectResult.h>
#include <aws/s3/model/HeadBucketResult.h>
#include <aws/s3/model/ListBucketAnalyticsConfigurationsResult.h>
#include <aws/s3/model/ListBucketIntelligentTieringConfigurationsResult.h>
#include <aws/s3/model/ListBucketInventoryConfigurationsResult.h>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
Expand Down Expand Up @@ -207,6 +207,16 @@ namespace Model

inline HeadBucketResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}

/**
* <p>Region of the bucket. If it's any empty string, this response header does not appear in the response.</p>
*/
inline const Aws::String & GetRegion() const{ return m_region; }

/**
* <p>Set region for the bucket.</p>
*/
inline void SetRegion(Aws::String value) { m_region = std::move(value); }

private:

LocationType m_bucketLocationType;
Expand All @@ -218,6 +228,8 @@ namespace Model
bool m_accessPointAlias;

Aws::String m_requestId;

Aws::String m_region;
};

} // namespace Model
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
Expand All @@ -8,6 +8,8 @@
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/memory/stl/AWSStringStream.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/xml/XmlSerializer.h>

#include <utility>

Expand All @@ -25,6 +27,8 @@ HeadBucketResult::HeadBucketResult() :
HeadBucketResult::HeadBucketResult(const Aws::AmazonWebServiceResult<XmlDocument>& result) :
m_bucketLocationType(LocationType::NOT_SET),
m_accessPointAlias(false)

HeadBucketResult::HeadBucketResult(const Aws::AmazonWebServiceResult<Utils::Xml::XmlDocument>& result)
{
*this = result;
}
Expand Down

0 comments on commit 7c686c6

Please sign in to comment.