/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Xml { class XmlDocument; } // namespace Xml } // namespace Utils namespace Redshift { namespace Model { /** *

See Also:

AWS * API Reference

*/ class DescribeSnapshotCopyGrantsResult { public: AWS_REDSHIFT_API DescribeSnapshotCopyGrantsResult(); AWS_REDSHIFT_API DescribeSnapshotCopyGrantsResult(const Aws::AmazonWebServiceResult& result); AWS_REDSHIFT_API DescribeSnapshotCopyGrantsResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

An optional parameter that specifies the starting point to return a set of * response records. When the results of a DescribeSnapshotCopyGrant * request exceed the value specified in MaxRecords, Amazon Web * Services returns a value in the Marker field of the response. You * can retrieve the next set of response records by providing the returned marker * value in the Marker parameter and retrying the request.

*

Constraints: You can specify either the SnapshotCopyGrantName * parameter or the Marker parameter, but not both.

*/ inline const Aws::String& GetMarker() const{ return m_marker; } /** *

An optional parameter that specifies the starting point to return a set of * response records. When the results of a DescribeSnapshotCopyGrant * request exceed the value specified in MaxRecords, Amazon Web * Services returns a value in the Marker field of the response. You * can retrieve the next set of response records by providing the returned marker * value in the Marker parameter and retrying the request.

*

Constraints: You can specify either the SnapshotCopyGrantName * parameter or the Marker parameter, but not both.

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

An optional parameter that specifies the starting point to return a set of * response records. When the results of a DescribeSnapshotCopyGrant * request exceed the value specified in MaxRecords, Amazon Web * Services returns a value in the Marker field of the response. You * can retrieve the next set of response records by providing the returned marker * value in the Marker parameter and retrying the request.

*

Constraints: You can specify either the SnapshotCopyGrantName * parameter or the Marker parameter, but not both.

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

An optional parameter that specifies the starting point to return a set of * response records. When the results of a DescribeSnapshotCopyGrant * request exceed the value specified in MaxRecords, Amazon Web * Services returns a value in the Marker field of the response. You * can retrieve the next set of response records by providing the returned marker * value in the Marker parameter and retrying the request.

*

Constraints: You can specify either the SnapshotCopyGrantName * parameter or the Marker parameter, but not both.

*/ inline void SetMarker(const char* value) { m_marker.assign(value); } /** *

An optional parameter that specifies the starting point to return a set of * response records. When the results of a DescribeSnapshotCopyGrant * request exceed the value specified in MaxRecords, Amazon Web * Services returns a value in the Marker field of the response. You * can retrieve the next set of response records by providing the returned marker * value in the Marker parameter and retrying the request.

*

Constraints: You can specify either the SnapshotCopyGrantName * parameter or the Marker parameter, but not both.

*/ inline DescribeSnapshotCopyGrantsResult& WithMarker(const Aws::String& value) { SetMarker(value); return *this;} /** *

An optional parameter that specifies the starting point to return a set of * response records. When the results of a DescribeSnapshotCopyGrant * request exceed the value specified in MaxRecords, Amazon Web * Services returns a value in the Marker field of the response. You * can retrieve the next set of response records by providing the returned marker * value in the Marker parameter and retrying the request.

*

Constraints: You can specify either the SnapshotCopyGrantName * parameter or the Marker parameter, but not both.

*/ inline DescribeSnapshotCopyGrantsResult& WithMarker(Aws::String&& value) { SetMarker(std::move(value)); return *this;} /** *

An optional parameter that specifies the starting point to return a set of * response records. When the results of a DescribeSnapshotCopyGrant * request exceed the value specified in MaxRecords, Amazon Web * Services returns a value in the Marker field of the response. You * can retrieve the next set of response records by providing the returned marker * value in the Marker parameter and retrying the request.

*

Constraints: You can specify either the SnapshotCopyGrantName * parameter or the Marker parameter, but not both.

*/ inline DescribeSnapshotCopyGrantsResult& WithMarker(const char* value) { SetMarker(value); return *this;} /** *

The list of SnapshotCopyGrant objects.

*/ inline const Aws::Vector& GetSnapshotCopyGrants() const{ return m_snapshotCopyGrants; } /** *

The list of SnapshotCopyGrant objects.

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

The list of SnapshotCopyGrant objects.

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

The list of SnapshotCopyGrant objects.

*/ inline DescribeSnapshotCopyGrantsResult& WithSnapshotCopyGrants(const Aws::Vector& value) { SetSnapshotCopyGrants(value); return *this;} /** *

The list of SnapshotCopyGrant objects.

*/ inline DescribeSnapshotCopyGrantsResult& WithSnapshotCopyGrants(Aws::Vector&& value) { SetSnapshotCopyGrants(std::move(value)); return *this;} /** *

The list of SnapshotCopyGrant objects.

*/ inline DescribeSnapshotCopyGrantsResult& AddSnapshotCopyGrants(const SnapshotCopyGrant& value) { m_snapshotCopyGrants.push_back(value); return *this; } /** *

The list of SnapshotCopyGrant objects.

*/ inline DescribeSnapshotCopyGrantsResult& AddSnapshotCopyGrants(SnapshotCopyGrant&& value) { m_snapshotCopyGrants.push_back(std::move(value)); return *this; } inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; } inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; } inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); } inline DescribeSnapshotCopyGrantsResult& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;} inline DescribeSnapshotCopyGrantsResult& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;} private: Aws::String m_marker; Aws::Vector m_snapshotCopyGrants; ResponseMetadata m_responseMetadata; }; } // namespace Model } // namespace Redshift } // namespace Aws