/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace CloudDirectory { namespace Model { /** */ class LookupPolicyRequest : public CloudDirectoryRequest { public: AWS_CLOUDDIRECTORY_API LookupPolicyRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "LookupPolicy"; } AWS_CLOUDDIRECTORY_API Aws::String SerializePayload() const override; AWS_CLOUDDIRECTORY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The Amazon Resource Name (ARN) that is associated with the Directory. * For more information, see arns.

*/ inline const Aws::String& GetDirectoryArn() const{ return m_directoryArn; } /** *

The Amazon Resource Name (ARN) that is associated with the Directory. * For more information, see arns.

*/ inline bool DirectoryArnHasBeenSet() const { return m_directoryArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) that is associated with the Directory. * For more information, see arns.

*/ inline void SetDirectoryArn(const Aws::String& value) { m_directoryArnHasBeenSet = true; m_directoryArn = value; } /** *

The Amazon Resource Name (ARN) that is associated with the Directory. * For more information, see arns.

*/ inline void SetDirectoryArn(Aws::String&& value) { m_directoryArnHasBeenSet = true; m_directoryArn = std::move(value); } /** *

The Amazon Resource Name (ARN) that is associated with the Directory. * For more information, see arns.

*/ inline void SetDirectoryArn(const char* value) { m_directoryArnHasBeenSet = true; m_directoryArn.assign(value); } /** *

The Amazon Resource Name (ARN) that is associated with the Directory. * For more information, see arns.

*/ inline LookupPolicyRequest& WithDirectoryArn(const Aws::String& value) { SetDirectoryArn(value); return *this;} /** *

The Amazon Resource Name (ARN) that is associated with the Directory. * For more information, see arns.

*/ inline LookupPolicyRequest& WithDirectoryArn(Aws::String&& value) { SetDirectoryArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) that is associated with the Directory. * For more information, see arns.

*/ inline LookupPolicyRequest& WithDirectoryArn(const char* value) { SetDirectoryArn(value); return *this;} /** *

Reference that identifies the object whose policies will be looked up.

*/ inline const ObjectReference& GetObjectReference() const{ return m_objectReference; } /** *

Reference that identifies the object whose policies will be looked up.

*/ inline bool ObjectReferenceHasBeenSet() const { return m_objectReferenceHasBeenSet; } /** *

Reference that identifies the object whose policies will be looked up.

*/ inline void SetObjectReference(const ObjectReference& value) { m_objectReferenceHasBeenSet = true; m_objectReference = value; } /** *

Reference that identifies the object whose policies will be looked up.

*/ inline void SetObjectReference(ObjectReference&& value) { m_objectReferenceHasBeenSet = true; m_objectReference = std::move(value); } /** *

Reference that identifies the object whose policies will be looked up.

*/ inline LookupPolicyRequest& WithObjectReference(const ObjectReference& value) { SetObjectReference(value); return *this;} /** *

Reference that identifies the object whose policies will be looked up.

*/ inline LookupPolicyRequest& WithObjectReference(ObjectReference&& value) { SetObjectReference(std::move(value)); return *this;} /** *

The token to request the next page of results.

*/ inline const Aws::String& GetNextToken() const{ return m_nextToken; } /** *

The token to request the next page of results.

*/ inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } /** *

The token to request the next page of results.

*/ inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } /** *

The token to request the next page of results.

*/ inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } /** *

The token to request the next page of results.

*/ inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } /** *

The token to request the next page of results.

*/ inline LookupPolicyRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} /** *

The token to request the next page of results.

*/ inline LookupPolicyRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} /** *

The token to request the next page of results.

*/ inline LookupPolicyRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} /** *

The maximum number of items to be retrieved in a single call. This is an * approximate number.

*/ inline int GetMaxResults() const{ return m_maxResults; } /** *

The maximum number of items to be retrieved in a single call. This is an * approximate number.

*/ inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; } /** *

The maximum number of items to be retrieved in a single call. This is an * approximate number.

*/ inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; } /** *

The maximum number of items to be retrieved in a single call. This is an * approximate number.

*/ inline LookupPolicyRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} private: Aws::String m_directoryArn; bool m_directoryArnHasBeenSet = false; ObjectReference m_objectReference; bool m_objectReferenceHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; }; } // namespace Model } // namespace CloudDirectory } // namespace Aws