/** * 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 namespace Aws { namespace RAM { namespace Model { /** */ class AWS_RAM_API GetResourceShareAssociationsRequest : public RAMRequest { public: GetResourceShareAssociationsRequest(); // 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 "GetResourceShareAssociations"; } Aws::String SerializePayload() const override; /** *

The association type. Specify PRINCIPAL to list the principals * that are associated with the specified resource share. Specify * RESOURCE to list the resources that are associated with the * specified resource share.

*/ inline const ResourceShareAssociationType& GetAssociationType() const{ return m_associationType; } /** *

The association type. Specify PRINCIPAL to list the principals * that are associated with the specified resource share. Specify * RESOURCE to list the resources that are associated with the * specified resource share.

*/ inline bool AssociationTypeHasBeenSet() const { return m_associationTypeHasBeenSet; } /** *

The association type. Specify PRINCIPAL to list the principals * that are associated with the specified resource share. Specify * RESOURCE to list the resources that are associated with the * specified resource share.

*/ inline void SetAssociationType(const ResourceShareAssociationType& value) { m_associationTypeHasBeenSet = true; m_associationType = value; } /** *

The association type. Specify PRINCIPAL to list the principals * that are associated with the specified resource share. Specify * RESOURCE to list the resources that are associated with the * specified resource share.

*/ inline void SetAssociationType(ResourceShareAssociationType&& value) { m_associationTypeHasBeenSet = true; m_associationType = std::move(value); } /** *

The association type. Specify PRINCIPAL to list the principals * that are associated with the specified resource share. Specify * RESOURCE to list the resources that are associated with the * specified resource share.

*/ inline GetResourceShareAssociationsRequest& WithAssociationType(const ResourceShareAssociationType& value) { SetAssociationType(value); return *this;} /** *

The association type. Specify PRINCIPAL to list the principals * that are associated with the specified resource share. Specify * RESOURCE to list the resources that are associated with the * specified resource share.

*/ inline GetResourceShareAssociationsRequest& WithAssociationType(ResourceShareAssociationType&& value) { SetAssociationType(std::move(value)); return *this;} /** *

The Amazon Resource Names (ARN) of the resource shares.

*/ inline const Aws::Vector& GetResourceShareArns() const{ return m_resourceShareArns; } /** *

The Amazon Resource Names (ARN) of the resource shares.

*/ inline bool ResourceShareArnsHasBeenSet() const { return m_resourceShareArnsHasBeenSet; } /** *

The Amazon Resource Names (ARN) of the resource shares.

*/ inline void SetResourceShareArns(const Aws::Vector& value) { m_resourceShareArnsHasBeenSet = true; m_resourceShareArns = value; } /** *

The Amazon Resource Names (ARN) of the resource shares.

*/ inline void SetResourceShareArns(Aws::Vector&& value) { m_resourceShareArnsHasBeenSet = true; m_resourceShareArns = std::move(value); } /** *

The Amazon Resource Names (ARN) of the resource shares.

*/ inline GetResourceShareAssociationsRequest& WithResourceShareArns(const Aws::Vector& value) { SetResourceShareArns(value); return *this;} /** *

The Amazon Resource Names (ARN) of the resource shares.

*/ inline GetResourceShareAssociationsRequest& WithResourceShareArns(Aws::Vector&& value) { SetResourceShareArns(std::move(value)); return *this;} /** *

The Amazon Resource Names (ARN) of the resource shares.

*/ inline GetResourceShareAssociationsRequest& AddResourceShareArns(const Aws::String& value) { m_resourceShareArnsHasBeenSet = true; m_resourceShareArns.push_back(value); return *this; } /** *

The Amazon Resource Names (ARN) of the resource shares.

*/ inline GetResourceShareAssociationsRequest& AddResourceShareArns(Aws::String&& value) { m_resourceShareArnsHasBeenSet = true; m_resourceShareArns.push_back(std::move(value)); return *this; } /** *

The Amazon Resource Names (ARN) of the resource shares.

*/ inline GetResourceShareAssociationsRequest& AddResourceShareArns(const char* value) { m_resourceShareArnsHasBeenSet = true; m_resourceShareArns.push_back(value); return *this; } /** *

The Amazon Resource Name (ARN) of the resource. You cannot specify this * parameter if the association type is PRINCIPAL.

*/ inline const Aws::String& GetResourceArn() const{ return m_resourceArn; } /** *

The Amazon Resource Name (ARN) of the resource. You cannot specify this * parameter if the association type is PRINCIPAL.

*/ inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the resource. You cannot specify this * parameter if the association type is PRINCIPAL.

*/ inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; } /** *

The Amazon Resource Name (ARN) of the resource. You cannot specify this * parameter if the association type is PRINCIPAL.

*/ inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the resource. You cannot specify this * parameter if the association type is PRINCIPAL.

*/ inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the resource. You cannot specify this * parameter if the association type is PRINCIPAL.

*/ inline GetResourceShareAssociationsRequest& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the resource. You cannot specify this * parameter if the association type is PRINCIPAL.

*/ inline GetResourceShareAssociationsRequest& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the resource. You cannot specify this * parameter if the association type is PRINCIPAL.

*/ inline GetResourceShareAssociationsRequest& WithResourceArn(const char* value) { SetResourceArn(value); return *this;} /** *

The principal. You cannot specify this parameter if the association type is * RESOURCE.

*/ inline const Aws::String& GetPrincipal() const{ return m_principal; } /** *

The principal. You cannot specify this parameter if the association type is * RESOURCE.

*/ inline bool PrincipalHasBeenSet() const { return m_principalHasBeenSet; } /** *

The principal. You cannot specify this parameter if the association type is * RESOURCE.

*/ inline void SetPrincipal(const Aws::String& value) { m_principalHasBeenSet = true; m_principal = value; } /** *

The principal. You cannot specify this parameter if the association type is * RESOURCE.

*/ inline void SetPrincipal(Aws::String&& value) { m_principalHasBeenSet = true; m_principal = std::move(value); } /** *

The principal. You cannot specify this parameter if the association type is * RESOURCE.

*/ inline void SetPrincipal(const char* value) { m_principalHasBeenSet = true; m_principal.assign(value); } /** *

The principal. You cannot specify this parameter if the association type is * RESOURCE.

*/ inline GetResourceShareAssociationsRequest& WithPrincipal(const Aws::String& value) { SetPrincipal(value); return *this;} /** *

The principal. You cannot specify this parameter if the association type is * RESOURCE.

*/ inline GetResourceShareAssociationsRequest& WithPrincipal(Aws::String&& value) { SetPrincipal(std::move(value)); return *this;} /** *

The principal. You cannot specify this parameter if the association type is * RESOURCE.

*/ inline GetResourceShareAssociationsRequest& WithPrincipal(const char* value) { SetPrincipal(value); return *this;} /** *

The association status.

*/ inline const ResourceShareAssociationStatus& GetAssociationStatus() const{ return m_associationStatus; } /** *

The association status.

*/ inline bool AssociationStatusHasBeenSet() const { return m_associationStatusHasBeenSet; } /** *

The association status.

*/ inline void SetAssociationStatus(const ResourceShareAssociationStatus& value) { m_associationStatusHasBeenSet = true; m_associationStatus = value; } /** *

The association status.

*/ inline void SetAssociationStatus(ResourceShareAssociationStatus&& value) { m_associationStatusHasBeenSet = true; m_associationStatus = std::move(value); } /** *

The association status.

*/ inline GetResourceShareAssociationsRequest& WithAssociationStatus(const ResourceShareAssociationStatus& value) { SetAssociationStatus(value); return *this;} /** *

The association status.

*/ inline GetResourceShareAssociationsRequest& WithAssociationStatus(ResourceShareAssociationStatus&& value) { SetAssociationStatus(std::move(value)); return *this;} /** *

The token for the next page of results.

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

The token for the next page of results.

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

The token for the next page of results.

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

The token for the next page of results.

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

The token for the next page of results.

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

The token for the next page of results.

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

The token for the next page of results.

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

The token for the next page of results.

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

The maximum number of results to return with a single call. To retrieve the * remaining results, make another call with the returned nextToken * value.

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

The maximum number of results to return with a single call. To retrieve the * remaining results, make another call with the returned nextToken * value.

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

The maximum number of results to return with a single call. To retrieve the * remaining results, make another call with the returned nextToken * value.

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

The maximum number of results to return with a single call. To retrieve the * remaining results, make another call with the returned nextToken * value.

*/ inline GetResourceShareAssociationsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} private: ResourceShareAssociationType m_associationType; bool m_associationTypeHasBeenSet; Aws::Vector m_resourceShareArns; bool m_resourceShareArnsHasBeenSet; Aws::String m_resourceArn; bool m_resourceArnHasBeenSet; Aws::String m_principal; bool m_principalHasBeenSet; ResourceShareAssociationStatus m_associationStatus; bool m_associationStatusHasBeenSet; Aws::String m_nextToken; bool m_nextTokenHasBeenSet; int m_maxResults; bool m_maxResultsHasBeenSet; }; } // namespace Model } // namespace RAM } // namespace Aws