/** * 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 { namespace ConfigService { namespace Model { /** *

See Also:

AWS * API Reference

*/ class DescribeComplianceByResourceRequest : public ConfigServiceRequest { public: AWS_CONFIGSERVICE_API DescribeComplianceByResourceRequest(); // 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 "DescribeComplianceByResource"; } AWS_CONFIGSERVICE_API Aws::String SerializePayload() const override; AWS_CONFIGSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The types of Amazon Web Services resources for which you want compliance * information (for example, AWS::EC2::Instance). For this action, you * can specify that the resource type is an Amazon Web Services account by * specifying AWS::::Account.

*/ inline const Aws::String& GetResourceType() const{ return m_resourceType; } /** *

The types of Amazon Web Services resources for which you want compliance * information (for example, AWS::EC2::Instance). For this action, you * can specify that the resource type is an Amazon Web Services account by * specifying AWS::::Account.

*/ inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; } /** *

The types of Amazon Web Services resources for which you want compliance * information (for example, AWS::EC2::Instance). For this action, you * can specify that the resource type is an Amazon Web Services account by * specifying AWS::::Account.

*/ inline void SetResourceType(const Aws::String& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; } /** *

The types of Amazon Web Services resources for which you want compliance * information (for example, AWS::EC2::Instance). For this action, you * can specify that the resource type is an Amazon Web Services account by * specifying AWS::::Account.

*/ inline void SetResourceType(Aws::String&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); } /** *

The types of Amazon Web Services resources for which you want compliance * information (for example, AWS::EC2::Instance). For this action, you * can specify that the resource type is an Amazon Web Services account by * specifying AWS::::Account.

*/ inline void SetResourceType(const char* value) { m_resourceTypeHasBeenSet = true; m_resourceType.assign(value); } /** *

The types of Amazon Web Services resources for which you want compliance * information (for example, AWS::EC2::Instance). For this action, you * can specify that the resource type is an Amazon Web Services account by * specifying AWS::::Account.

*/ inline DescribeComplianceByResourceRequest& WithResourceType(const Aws::String& value) { SetResourceType(value); return *this;} /** *

The types of Amazon Web Services resources for which you want compliance * information (for example, AWS::EC2::Instance). For this action, you * can specify that the resource type is an Amazon Web Services account by * specifying AWS::::Account.

*/ inline DescribeComplianceByResourceRequest& WithResourceType(Aws::String&& value) { SetResourceType(std::move(value)); return *this;} /** *

The types of Amazon Web Services resources for which you want compliance * information (for example, AWS::EC2::Instance). For this action, you * can specify that the resource type is an Amazon Web Services account by * specifying AWS::::Account.

*/ inline DescribeComplianceByResourceRequest& WithResourceType(const char* value) { SetResourceType(value); return *this;} /** *

The ID of the Amazon Web Services resource for which you want compliance * information. You can specify only one resource ID. If you specify a resource ID, * you must also specify a type for ResourceType.

*/ inline const Aws::String& GetResourceId() const{ return m_resourceId; } /** *

The ID of the Amazon Web Services resource for which you want compliance * information. You can specify only one resource ID. If you specify a resource ID, * you must also specify a type for ResourceType.

*/ inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; } /** *

The ID of the Amazon Web Services resource for which you want compliance * information. You can specify only one resource ID. If you specify a resource ID, * you must also specify a type for ResourceType.

*/ inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; } /** *

The ID of the Amazon Web Services resource for which you want compliance * information. You can specify only one resource ID. If you specify a resource ID, * you must also specify a type for ResourceType.

*/ inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); } /** *

The ID of the Amazon Web Services resource for which you want compliance * information. You can specify only one resource ID. If you specify a resource ID, * you must also specify a type for ResourceType.

*/ inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); } /** *

The ID of the Amazon Web Services resource for which you want compliance * information. You can specify only one resource ID. If you specify a resource ID, * you must also specify a type for ResourceType.

*/ inline DescribeComplianceByResourceRequest& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;} /** *

The ID of the Amazon Web Services resource for which you want compliance * information. You can specify only one resource ID. If you specify a resource ID, * you must also specify a type for ResourceType.

*/ inline DescribeComplianceByResourceRequest& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;} /** *

The ID of the Amazon Web Services resource for which you want compliance * information. You can specify only one resource ID. If you specify a resource ID, * you must also specify a type for ResourceType.

*/ inline DescribeComplianceByResourceRequest& WithResourceId(const char* value) { SetResourceId(value); return *this;} /** *

Filters the results by compliance.

*/ inline const Aws::Vector& GetComplianceTypes() const{ return m_complianceTypes; } /** *

Filters the results by compliance.

*/ inline bool ComplianceTypesHasBeenSet() const { return m_complianceTypesHasBeenSet; } /** *

Filters the results by compliance.

*/ inline void SetComplianceTypes(const Aws::Vector& value) { m_complianceTypesHasBeenSet = true; m_complianceTypes = value; } /** *

Filters the results by compliance.

*/ inline void SetComplianceTypes(Aws::Vector&& value) { m_complianceTypesHasBeenSet = true; m_complianceTypes = std::move(value); } /** *

Filters the results by compliance.

*/ inline DescribeComplianceByResourceRequest& WithComplianceTypes(const Aws::Vector& value) { SetComplianceTypes(value); return *this;} /** *

Filters the results by compliance.

*/ inline DescribeComplianceByResourceRequest& WithComplianceTypes(Aws::Vector&& value) { SetComplianceTypes(std::move(value)); return *this;} /** *

Filters the results by compliance.

*/ inline DescribeComplianceByResourceRequest& AddComplianceTypes(const ComplianceType& value) { m_complianceTypesHasBeenSet = true; m_complianceTypes.push_back(value); return *this; } /** *

Filters the results by compliance.

*/ inline DescribeComplianceByResourceRequest& AddComplianceTypes(ComplianceType&& value) { m_complianceTypesHasBeenSet = true; m_complianceTypes.push_back(std::move(value)); return *this; } /** *

The maximum number of evaluation results returned on each page. The default * is 10. You cannot specify a number greater than 100. If you specify 0, Config * uses the default.

*/ inline int GetLimit() const{ return m_limit; } /** *

The maximum number of evaluation results returned on each page. The default * is 10. You cannot specify a number greater than 100. If you specify 0, Config * uses the default.

*/ inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; } /** *

The maximum number of evaluation results returned on each page. The default * is 10. You cannot specify a number greater than 100. If you specify 0, Config * uses the default.

*/ inline void SetLimit(int value) { m_limitHasBeenSet = true; m_limit = value; } /** *

The maximum number of evaluation results returned on each page. The default * is 10. You cannot specify a number greater than 100. If you specify 0, Config * uses the default.

*/ inline DescribeComplianceByResourceRequest& WithLimit(int value) { SetLimit(value); return *this;} /** *

The nextToken string returned on a previous page that you use to * get the next page of results in a paginated response.

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

The nextToken string returned on a previous page that you use to * get the next page of results in a paginated response.

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

The nextToken string returned on a previous page that you use to * get the next page of results in a paginated response.

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

The nextToken string returned on a previous page that you use to * get the next page of results in a paginated response.

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

The nextToken string returned on a previous page that you use to * get the next page of results in a paginated response.

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

The nextToken string returned on a previous page that you use to * get the next page of results in a paginated response.

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

The nextToken string returned on a previous page that you use to * get the next page of results in a paginated response.

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

The nextToken string returned on a previous page that you use to * get the next page of results in a paginated response.

*/ inline DescribeComplianceByResourceRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} private: Aws::String m_resourceType; bool m_resourceTypeHasBeenSet = false; Aws::String m_resourceId; bool m_resourceIdHasBeenSet = false; Aws::Vector m_complianceTypes; bool m_complianceTypesHasBeenSet = false; int m_limit; bool m_limitHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; }; } // namespace Model } // namespace ConfigService } // namespace Aws