/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Xml { class XmlDocument; } // namespace Xml } // namespace Utils namespace S3 { namespace Model { class ListObjectsV2Result { public: AWS_S3_API ListObjectsV2Result(); AWS_S3_API ListObjectsV2Result(const Aws::AmazonWebServiceResult& result); AWS_S3_API ListObjectsV2Result& operator=(const Aws::AmazonWebServiceResult& result); /** *

Set to false if all of the results were returned. Set to * true if more keys are available to return. If the number of results * exceeds that specified by MaxKeys, all of the results might not be * returned.

*/ inline bool GetIsTruncated() const{ return m_isTruncated; } /** *

Set to false if all of the results were returned. Set to * true if more keys are available to return. If the number of results * exceeds that specified by MaxKeys, all of the results might not be * returned.

*/ inline void SetIsTruncated(bool value) { m_isTruncated = value; } /** *

Set to false if all of the results were returned. Set to * true if more keys are available to return. If the number of results * exceeds that specified by MaxKeys, all of the results might not be * returned.

*/ inline ListObjectsV2Result& WithIsTruncated(bool value) { SetIsTruncated(value); return *this;} /** *

Metadata about each object returned.

*/ inline const Aws::Vector& GetContents() const{ return m_contents; } /** *

Metadata about each object returned.

*/ inline void SetContents(const Aws::Vector& value) { m_contents = value; } /** *

Metadata about each object returned.

*/ inline void SetContents(Aws::Vector&& value) { m_contents = std::move(value); } /** *

Metadata about each object returned.

*/ inline ListObjectsV2Result& WithContents(const Aws::Vector& value) { SetContents(value); return *this;} /** *

Metadata about each object returned.

*/ inline ListObjectsV2Result& WithContents(Aws::Vector&& value) { SetContents(std::move(value)); return *this;} /** *

Metadata about each object returned.

*/ inline ListObjectsV2Result& AddContents(const Object& value) { m_contents.push_back(value); return *this; } /** *

Metadata about each object returned.

*/ inline ListObjectsV2Result& AddContents(Object&& value) { m_contents.push_back(std::move(value)); return *this; } /** *

The bucket name.

When using this action with an access point, you must * direct requests to the access point hostname. The access point hostname takes * the form * AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. * When using this action with an access point through the Amazon Web Services * SDKs, you provide the access point ARN in place of the bucket name. For more * information about access point ARNs, see Using * access points in the Amazon S3 User Guide.

When you use this * action with Amazon S3 on Outposts, you must direct requests to the S3 on * Outposts hostname. The S3 on Outposts hostname takes the form * AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com. * When you use this action with S3 on Outposts through the Amazon Web Services * SDKs, you provide the Outposts access point ARN in place of the bucket name. For * more information about S3 on Outposts ARNs, see What * is S3 on Outposts? in the Amazon S3 User Guide.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The bucket name.

When using this action with an access point, you must * direct requests to the access point hostname. The access point hostname takes * the form * AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. * When using this action with an access point through the Amazon Web Services * SDKs, you provide the access point ARN in place of the bucket name. For more * information about access point ARNs, see Using * access points in the Amazon S3 User Guide.

When you use this * action with Amazon S3 on Outposts, you must direct requests to the S3 on * Outposts hostname. The S3 on Outposts hostname takes the form * AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com. * When you use this action with S3 on Outposts through the Amazon Web Services * SDKs, you provide the Outposts access point ARN in place of the bucket name. For * more information about S3 on Outposts ARNs, see What * is S3 on Outposts? in the Amazon S3 User Guide.

*/ inline void SetName(const Aws::String& value) { m_name = value; } /** *

The bucket name.

When using this action with an access point, you must * direct requests to the access point hostname. The access point hostname takes * the form * AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. * When using this action with an access point through the Amazon Web Services * SDKs, you provide the access point ARN in place of the bucket name. For more * information about access point ARNs, see Using * access points in the Amazon S3 User Guide.

When you use this * action with Amazon S3 on Outposts, you must direct requests to the S3 on * Outposts hostname. The S3 on Outposts hostname takes the form * AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com. * When you use this action with S3 on Outposts through the Amazon Web Services * SDKs, you provide the Outposts access point ARN in place of the bucket name. For * more information about S3 on Outposts ARNs, see What * is S3 on Outposts? in the Amazon S3 User Guide.

*/ inline void SetName(Aws::String&& value) { m_name = std::move(value); } /** *

The bucket name.

When using this action with an access point, you must * direct requests to the access point hostname. The access point hostname takes * the form * AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. * When using this action with an access point through the Amazon Web Services * SDKs, you provide the access point ARN in place of the bucket name. For more * information about access point ARNs, see Using * access points in the Amazon S3 User Guide.

When you use this * action with Amazon S3 on Outposts, you must direct requests to the S3 on * Outposts hostname. The S3 on Outposts hostname takes the form * AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com. * When you use this action with S3 on Outposts through the Amazon Web Services * SDKs, you provide the Outposts access point ARN in place of the bucket name. For * more information about S3 on Outposts ARNs, see What * is S3 on Outposts? in the Amazon S3 User Guide.

*/ inline void SetName(const char* value) { m_name.assign(value); } /** *

The bucket name.

When using this action with an access point, you must * direct requests to the access point hostname. The access point hostname takes * the form * AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. * When using this action with an access point through the Amazon Web Services * SDKs, you provide the access point ARN in place of the bucket name. For more * information about access point ARNs, see Using * access points in the Amazon S3 User Guide.

When you use this * action with Amazon S3 on Outposts, you must direct requests to the S3 on * Outposts hostname. The S3 on Outposts hostname takes the form * AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com. * When you use this action with S3 on Outposts through the Amazon Web Services * SDKs, you provide the Outposts access point ARN in place of the bucket name. For * more information about S3 on Outposts ARNs, see What * is S3 on Outposts? in the Amazon S3 User Guide.

*/ inline ListObjectsV2Result& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The bucket name.

When using this action with an access point, you must * direct requests to the access point hostname. The access point hostname takes * the form * AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. * When using this action with an access point through the Amazon Web Services * SDKs, you provide the access point ARN in place of the bucket name. For more * information about access point ARNs, see Using * access points in the Amazon S3 User Guide.

When you use this * action with Amazon S3 on Outposts, you must direct requests to the S3 on * Outposts hostname. The S3 on Outposts hostname takes the form * AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com. * When you use this action with S3 on Outposts through the Amazon Web Services * SDKs, you provide the Outposts access point ARN in place of the bucket name. For * more information about S3 on Outposts ARNs, see What * is S3 on Outposts? in the Amazon S3 User Guide.

*/ inline ListObjectsV2Result& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The bucket name.

When using this action with an access point, you must * direct requests to the access point hostname. The access point hostname takes * the form * AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. * When using this action with an access point through the Amazon Web Services * SDKs, you provide the access point ARN in place of the bucket name. For more * information about access point ARNs, see Using * access points in the Amazon S3 User Guide.

When you use this * action with Amazon S3 on Outposts, you must direct requests to the S3 on * Outposts hostname. The S3 on Outposts hostname takes the form * AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com. * When you use this action with S3 on Outposts through the Amazon Web Services * SDKs, you provide the Outposts access point ARN in place of the bucket name. For * more information about S3 on Outposts ARNs, see What * is S3 on Outposts? in the Amazon S3 User Guide.

*/ inline ListObjectsV2Result& WithName(const char* value) { SetName(value); return *this;} /** *

Keys that begin with the indicated prefix.

*/ inline const Aws::String& GetPrefix() const{ return m_prefix; } /** *

Keys that begin with the indicated prefix.

*/ inline void SetPrefix(const Aws::String& value) { m_prefix = value; } /** *

Keys that begin with the indicated prefix.

*/ inline void SetPrefix(Aws::String&& value) { m_prefix = std::move(value); } /** *

Keys that begin with the indicated prefix.

*/ inline void SetPrefix(const char* value) { m_prefix.assign(value); } /** *

Keys that begin with the indicated prefix.

*/ inline ListObjectsV2Result& WithPrefix(const Aws::String& value) { SetPrefix(value); return *this;} /** *

Keys that begin with the indicated prefix.

*/ inline ListObjectsV2Result& WithPrefix(Aws::String&& value) { SetPrefix(std::move(value)); return *this;} /** *

Keys that begin with the indicated prefix.

*/ inline ListObjectsV2Result& WithPrefix(const char* value) { SetPrefix(value); return *this;} /** *

Causes keys that contain the same string between the prefix and * the first occurrence of the delimiter to be rolled up into a single result * element in the CommonPrefixes collection. These rolled-up keys are * not returned elsewhere in the response. Each rolled-up result counts as only one * return against the MaxKeys value.

*/ inline const Aws::String& GetDelimiter() const{ return m_delimiter; } /** *

Causes keys that contain the same string between the prefix and * the first occurrence of the delimiter to be rolled up into a single result * element in the CommonPrefixes collection. These rolled-up keys are * not returned elsewhere in the response. Each rolled-up result counts as only one * return against the MaxKeys value.

*/ inline void SetDelimiter(const Aws::String& value) { m_delimiter = value; } /** *

Causes keys that contain the same string between the prefix and * the first occurrence of the delimiter to be rolled up into a single result * element in the CommonPrefixes collection. These rolled-up keys are * not returned elsewhere in the response. Each rolled-up result counts as only one * return against the MaxKeys value.

*/ inline void SetDelimiter(Aws::String&& value) { m_delimiter = std::move(value); } /** *

Causes keys that contain the same string between the prefix and * the first occurrence of the delimiter to be rolled up into a single result * element in the CommonPrefixes collection. These rolled-up keys are * not returned elsewhere in the response. Each rolled-up result counts as only one * return against the MaxKeys value.

*/ inline void SetDelimiter(const char* value) { m_delimiter.assign(value); } /** *

Causes keys that contain the same string between the prefix and * the first occurrence of the delimiter to be rolled up into a single result * element in the CommonPrefixes collection. These rolled-up keys are * not returned elsewhere in the response. Each rolled-up result counts as only one * return against the MaxKeys value.

*/ inline ListObjectsV2Result& WithDelimiter(const Aws::String& value) { SetDelimiter(value); return *this;} /** *

Causes keys that contain the same string between the prefix and * the first occurrence of the delimiter to be rolled up into a single result * element in the CommonPrefixes collection. These rolled-up keys are * not returned elsewhere in the response. Each rolled-up result counts as only one * return against the MaxKeys value.

*/ inline ListObjectsV2Result& WithDelimiter(Aws::String&& value) { SetDelimiter(std::move(value)); return *this;} /** *

Causes keys that contain the same string between the prefix and * the first occurrence of the delimiter to be rolled up into a single result * element in the CommonPrefixes collection. These rolled-up keys are * not returned elsewhere in the response. Each rolled-up result counts as only one * return against the MaxKeys value.

*/ inline ListObjectsV2Result& WithDelimiter(const char* value) { SetDelimiter(value); return *this;} /** *

Sets the maximum number of keys returned in the response. By default, the * action returns up to 1,000 key names. The response might contain fewer keys but * will never contain more.

*/ inline int GetMaxKeys() const{ return m_maxKeys; } /** *

Sets the maximum number of keys returned in the response. By default, the * action returns up to 1,000 key names. The response might contain fewer keys but * will never contain more.

*/ inline void SetMaxKeys(int value) { m_maxKeys = value; } /** *

Sets the maximum number of keys returned in the response. By default, the * action returns up to 1,000 key names. The response might contain fewer keys but * will never contain more.

*/ inline ListObjectsV2Result& WithMaxKeys(int value) { SetMaxKeys(value); return *this;} /** *

All of the keys (up to 1,000) rolled up into a common prefix count as a * single return when calculating the number of returns.

A response can * contain CommonPrefixes only if you specify a delimiter.

* CommonPrefixes contains all (if there are any) keys between * Prefix and the next occurrence of the string specified by a * delimiter.

CommonPrefixes lists keys that act like * subdirectories in the directory specified by Prefix.

For * example, if the prefix is notes/ and the delimiter is a slash * (/) as in notes/summer/july, the common prefix is * notes/summer/. All of the keys that roll up into a common prefix * count as a single return when calculating the number of returns.

*/ inline const Aws::Vector& GetCommonPrefixes() const{ return m_commonPrefixes; } /** *

All of the keys (up to 1,000) rolled up into a common prefix count as a * single return when calculating the number of returns.

A response can * contain CommonPrefixes only if you specify a delimiter.

* CommonPrefixes contains all (if there are any) keys between * Prefix and the next occurrence of the string specified by a * delimiter.

CommonPrefixes lists keys that act like * subdirectories in the directory specified by Prefix.

For * example, if the prefix is notes/ and the delimiter is a slash * (/) as in notes/summer/july, the common prefix is * notes/summer/. All of the keys that roll up into a common prefix * count as a single return when calculating the number of returns.

*/ inline void SetCommonPrefixes(const Aws::Vector& value) { m_commonPrefixes = value; } /** *

All of the keys (up to 1,000) rolled up into a common prefix count as a * single return when calculating the number of returns.

A response can * contain CommonPrefixes only if you specify a delimiter.

* CommonPrefixes contains all (if there are any) keys between * Prefix and the next occurrence of the string specified by a * delimiter.

CommonPrefixes lists keys that act like * subdirectories in the directory specified by Prefix.

For * example, if the prefix is notes/ and the delimiter is a slash * (/) as in notes/summer/july, the common prefix is * notes/summer/. All of the keys that roll up into a common prefix * count as a single return when calculating the number of returns.

*/ inline void SetCommonPrefixes(Aws::Vector&& value) { m_commonPrefixes = std::move(value); } /** *

All of the keys (up to 1,000) rolled up into a common prefix count as a * single return when calculating the number of returns.

A response can * contain CommonPrefixes only if you specify a delimiter.

* CommonPrefixes contains all (if there are any) keys between * Prefix and the next occurrence of the string specified by a * delimiter.

CommonPrefixes lists keys that act like * subdirectories in the directory specified by Prefix.

For * example, if the prefix is notes/ and the delimiter is a slash * (/) as in notes/summer/july, the common prefix is * notes/summer/. All of the keys that roll up into a common prefix * count as a single return when calculating the number of returns.

*/ inline ListObjectsV2Result& WithCommonPrefixes(const Aws::Vector& value) { SetCommonPrefixes(value); return *this;} /** *

All of the keys (up to 1,000) rolled up into a common prefix count as a * single return when calculating the number of returns.

A response can * contain CommonPrefixes only if you specify a delimiter.

* CommonPrefixes contains all (if there are any) keys between * Prefix and the next occurrence of the string specified by a * delimiter.

CommonPrefixes lists keys that act like * subdirectories in the directory specified by Prefix.

For * example, if the prefix is notes/ and the delimiter is a slash * (/) as in notes/summer/july, the common prefix is * notes/summer/. All of the keys that roll up into a common prefix * count as a single return when calculating the number of returns.

*/ inline ListObjectsV2Result& WithCommonPrefixes(Aws::Vector&& value) { SetCommonPrefixes(std::move(value)); return *this;} /** *

All of the keys (up to 1,000) rolled up into a common prefix count as a * single return when calculating the number of returns.

A response can * contain CommonPrefixes only if you specify a delimiter.

* CommonPrefixes contains all (if there are any) keys between * Prefix and the next occurrence of the string specified by a * delimiter.

CommonPrefixes lists keys that act like * subdirectories in the directory specified by Prefix.

For * example, if the prefix is notes/ and the delimiter is a slash * (/) as in notes/summer/july, the common prefix is * notes/summer/. All of the keys that roll up into a common prefix * count as a single return when calculating the number of returns.

*/ inline ListObjectsV2Result& AddCommonPrefixes(const CommonPrefix& value) { m_commonPrefixes.push_back(value); return *this; } /** *

All of the keys (up to 1,000) rolled up into a common prefix count as a * single return when calculating the number of returns.

A response can * contain CommonPrefixes only if you specify a delimiter.

* CommonPrefixes contains all (if there are any) keys between * Prefix and the next occurrence of the string specified by a * delimiter.

CommonPrefixes lists keys that act like * subdirectories in the directory specified by Prefix.

For * example, if the prefix is notes/ and the delimiter is a slash * (/) as in notes/summer/july, the common prefix is * notes/summer/. All of the keys that roll up into a common prefix * count as a single return when calculating the number of returns.

*/ inline ListObjectsV2Result& AddCommonPrefixes(CommonPrefix&& value) { m_commonPrefixes.push_back(std::move(value)); return *this; } /** *

Encoding type used by Amazon S3 to encode object key names in the XML * response.

If you specify the encoding-type request * parameter, Amazon S3 includes this element in the response, and returns encoded * key name values in the following response elements:

Delimiter, * Prefix, Key, and StartAfter.

*/ inline const EncodingType& GetEncodingType() const{ return m_encodingType; } /** *

Encoding type used by Amazon S3 to encode object key names in the XML * response.

If you specify the encoding-type request * parameter, Amazon S3 includes this element in the response, and returns encoded * key name values in the following response elements:

Delimiter, * Prefix, Key, and StartAfter.

*/ inline void SetEncodingType(const EncodingType& value) { m_encodingType = value; } /** *

Encoding type used by Amazon S3 to encode object key names in the XML * response.

If you specify the encoding-type request * parameter, Amazon S3 includes this element in the response, and returns encoded * key name values in the following response elements:

Delimiter, * Prefix, Key, and StartAfter.

*/ inline void SetEncodingType(EncodingType&& value) { m_encodingType = std::move(value); } /** *

Encoding type used by Amazon S3 to encode object key names in the XML * response.

If you specify the encoding-type request * parameter, Amazon S3 includes this element in the response, and returns encoded * key name values in the following response elements:

Delimiter, * Prefix, Key, and StartAfter.

*/ inline ListObjectsV2Result& WithEncodingType(const EncodingType& value) { SetEncodingType(value); return *this;} /** *

Encoding type used by Amazon S3 to encode object key names in the XML * response.

If you specify the encoding-type request * parameter, Amazon S3 includes this element in the response, and returns encoded * key name values in the following response elements:

Delimiter, * Prefix, Key, and StartAfter.

*/ inline ListObjectsV2Result& WithEncodingType(EncodingType&& value) { SetEncodingType(std::move(value)); return *this;} /** *

KeyCount is the number of keys returned with this request. * KeyCount will always be less than or equal to the * MaxKeys field. For example, if you ask for 50 keys, your result * will include 50 keys or fewer.

*/ inline int GetKeyCount() const{ return m_keyCount; } /** *

KeyCount is the number of keys returned with this request. * KeyCount will always be less than or equal to the * MaxKeys field. For example, if you ask for 50 keys, your result * will include 50 keys or fewer.

*/ inline void SetKeyCount(int value) { m_keyCount = value; } /** *

KeyCount is the number of keys returned with this request. * KeyCount will always be less than or equal to the * MaxKeys field. For example, if you ask for 50 keys, your result * will include 50 keys or fewer.

*/ inline ListObjectsV2Result& WithKeyCount(int value) { SetKeyCount(value); return *this;} /** *

If ContinuationToken was sent with the request, it is included * in the response.

*/ inline const Aws::String& GetContinuationToken() const{ return m_continuationToken; } /** *

If ContinuationToken was sent with the request, it is included * in the response.

*/ inline void SetContinuationToken(const Aws::String& value) { m_continuationToken = value; } /** *

If ContinuationToken was sent with the request, it is included * in the response.

*/ inline void SetContinuationToken(Aws::String&& value) { m_continuationToken = std::move(value); } /** *

If ContinuationToken was sent with the request, it is included * in the response.

*/ inline void SetContinuationToken(const char* value) { m_continuationToken.assign(value); } /** *

If ContinuationToken was sent with the request, it is included * in the response.

*/ inline ListObjectsV2Result& WithContinuationToken(const Aws::String& value) { SetContinuationToken(value); return *this;} /** *

If ContinuationToken was sent with the request, it is included * in the response.

*/ inline ListObjectsV2Result& WithContinuationToken(Aws::String&& value) { SetContinuationToken(std::move(value)); return *this;} /** *

If ContinuationToken was sent with the request, it is included * in the response.

*/ inline ListObjectsV2Result& WithContinuationToken(const char* value) { SetContinuationToken(value); return *this;} /** *

NextContinuationToken is sent when isTruncated is * true, which means there are more keys in the bucket that can be listed. The next * list requests to Amazon S3 can be continued with this * NextContinuationToken. NextContinuationToken is * obfuscated and is not a real key

*/ inline const Aws::String& GetNextContinuationToken() const{ return m_nextContinuationToken; } /** *

NextContinuationToken is sent when isTruncated is * true, which means there are more keys in the bucket that can be listed. The next * list requests to Amazon S3 can be continued with this * NextContinuationToken. NextContinuationToken is * obfuscated and is not a real key

*/ inline void SetNextContinuationToken(const Aws::String& value) { m_nextContinuationToken = value; } /** *

NextContinuationToken is sent when isTruncated is * true, which means there are more keys in the bucket that can be listed. The next * list requests to Amazon S3 can be continued with this * NextContinuationToken. NextContinuationToken is * obfuscated and is not a real key

*/ inline void SetNextContinuationToken(Aws::String&& value) { m_nextContinuationToken = std::move(value); } /** *

NextContinuationToken is sent when isTruncated is * true, which means there are more keys in the bucket that can be listed. The next * list requests to Amazon S3 can be continued with this * NextContinuationToken. NextContinuationToken is * obfuscated and is not a real key

*/ inline void SetNextContinuationToken(const char* value) { m_nextContinuationToken.assign(value); } /** *

NextContinuationToken is sent when isTruncated is * true, which means there are more keys in the bucket that can be listed. The next * list requests to Amazon S3 can be continued with this * NextContinuationToken. NextContinuationToken is * obfuscated and is not a real key

*/ inline ListObjectsV2Result& WithNextContinuationToken(const Aws::String& value) { SetNextContinuationToken(value); return *this;} /** *

NextContinuationToken is sent when isTruncated is * true, which means there are more keys in the bucket that can be listed. The next * list requests to Amazon S3 can be continued with this * NextContinuationToken. NextContinuationToken is * obfuscated and is not a real key

*/ inline ListObjectsV2Result& WithNextContinuationToken(Aws::String&& value) { SetNextContinuationToken(std::move(value)); return *this;} /** *

NextContinuationToken is sent when isTruncated is * true, which means there are more keys in the bucket that can be listed. The next * list requests to Amazon S3 can be continued with this * NextContinuationToken. NextContinuationToken is * obfuscated and is not a real key

*/ inline ListObjectsV2Result& WithNextContinuationToken(const char* value) { SetNextContinuationToken(value); return *this;} /** *

If StartAfter was sent with the request, it is included in the response.

*/ inline const Aws::String& GetStartAfter() const{ return m_startAfter; } /** *

If StartAfter was sent with the request, it is included in the response.

*/ inline void SetStartAfter(const Aws::String& value) { m_startAfter = value; } /** *

If StartAfter was sent with the request, it is included in the response.

*/ inline void SetStartAfter(Aws::String&& value) { m_startAfter = std::move(value); } /** *

If StartAfter was sent with the request, it is included in the response.

*/ inline void SetStartAfter(const char* value) { m_startAfter.assign(value); } /** *

If StartAfter was sent with the request, it is included in the response.

*/ inline ListObjectsV2Result& WithStartAfter(const Aws::String& value) { SetStartAfter(value); return *this;} /** *

If StartAfter was sent with the request, it is included in the response.

*/ inline ListObjectsV2Result& WithStartAfter(Aws::String&& value) { SetStartAfter(std::move(value)); return *this;} /** *

If StartAfter was sent with the request, it is included in the response.

*/ inline ListObjectsV2Result& WithStartAfter(const char* value) { SetStartAfter(value); return *this;} inline const RequestCharged& GetRequestCharged() const{ return m_requestCharged; } inline void SetRequestCharged(const RequestCharged& value) { m_requestCharged = value; } inline void SetRequestCharged(RequestCharged&& value) { m_requestCharged = std::move(value); } inline ListObjectsV2Result& WithRequestCharged(const RequestCharged& value) { SetRequestCharged(value); return *this;} inline ListObjectsV2Result& WithRequestCharged(RequestCharged&& value) { SetRequestCharged(std::move(value)); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline ListObjectsV2Result& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline ListObjectsV2Result& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline ListObjectsV2Result& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: bool m_isTruncated; Aws::Vector m_contents; Aws::String m_name; Aws::String m_prefix; Aws::String m_delimiter; int m_maxKeys; Aws::Vector m_commonPrefixes; EncodingType m_encodingType; int m_keyCount; Aws::String m_continuationToken; Aws::String m_nextContinuationToken; Aws::String m_startAfter; RequestCharged m_requestCharged; Aws::String m_requestId; }; } // namespace Model } // namespace S3 } // namespace Aws