/** * 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 IAM { namespace Model { /** */ class GenerateServiceLastAccessedDetailsRequest : public IAMRequest { public: AWS_IAM_API GenerateServiceLastAccessedDetailsRequest(); // 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 "GenerateServiceLastAccessedDetails"; } AWS_IAM_API Aws::String SerializePayload() const override; protected: AWS_IAM_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override; public: /** *

The ARN of the IAM resource (user, group, role, or managed policy) used to * generate information about when the resource was last used in an attempt to * access an Amazon Web Services service.

*/ inline const Aws::String& GetArn() const{ return m_arn; } /** *

The ARN of the IAM resource (user, group, role, or managed policy) used to * generate information about when the resource was last used in an attempt to * access an Amazon Web Services service.

*/ inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } /** *

The ARN of the IAM resource (user, group, role, or managed policy) used to * generate information about when the resource was last used in an attempt to * access an Amazon Web Services service.

*/ inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } /** *

The ARN of the IAM resource (user, group, role, or managed policy) used to * generate information about when the resource was last used in an attempt to * access an Amazon Web Services service.

*/ inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } /** *

The ARN of the IAM resource (user, group, role, or managed policy) used to * generate information about when the resource was last used in an attempt to * access an Amazon Web Services service.

*/ inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } /** *

The ARN of the IAM resource (user, group, role, or managed policy) used to * generate information about when the resource was last used in an attempt to * access an Amazon Web Services service.

*/ inline GenerateServiceLastAccessedDetailsRequest& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *

The ARN of the IAM resource (user, group, role, or managed policy) used to * generate information about when the resource was last used in an attempt to * access an Amazon Web Services service.

*/ inline GenerateServiceLastAccessedDetailsRequest& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *

The ARN of the IAM resource (user, group, role, or managed policy) used to * generate information about when the resource was last used in an attempt to * access an Amazon Web Services service.

*/ inline GenerateServiceLastAccessedDetailsRequest& WithArn(const char* value) { SetArn(value); return *this;} /** *

The level of detail that you want to generate. You can specify whether you * want to generate information about the last attempt to access services or * actions. If you specify service-level granularity, this operation generates only * service data. If you specify action-level granularity, it generates service and * action data. If you don't include this optional parameter, the operation * generates service data.

*/ inline const AccessAdvisorUsageGranularityType& GetGranularity() const{ return m_granularity; } /** *

The level of detail that you want to generate. You can specify whether you * want to generate information about the last attempt to access services or * actions. If you specify service-level granularity, this operation generates only * service data. If you specify action-level granularity, it generates service and * action data. If you don't include this optional parameter, the operation * generates service data.

*/ inline bool GranularityHasBeenSet() const { return m_granularityHasBeenSet; } /** *

The level of detail that you want to generate. You can specify whether you * want to generate information about the last attempt to access services or * actions. If you specify service-level granularity, this operation generates only * service data. If you specify action-level granularity, it generates service and * action data. If you don't include this optional parameter, the operation * generates service data.

*/ inline void SetGranularity(const AccessAdvisorUsageGranularityType& value) { m_granularityHasBeenSet = true; m_granularity = value; } /** *

The level of detail that you want to generate. You can specify whether you * want to generate information about the last attempt to access services or * actions. If you specify service-level granularity, this operation generates only * service data. If you specify action-level granularity, it generates service and * action data. If you don't include this optional parameter, the operation * generates service data.

*/ inline void SetGranularity(AccessAdvisorUsageGranularityType&& value) { m_granularityHasBeenSet = true; m_granularity = std::move(value); } /** *

The level of detail that you want to generate. You can specify whether you * want to generate information about the last attempt to access services or * actions. If you specify service-level granularity, this operation generates only * service data. If you specify action-level granularity, it generates service and * action data. If you don't include this optional parameter, the operation * generates service data.

*/ inline GenerateServiceLastAccessedDetailsRequest& WithGranularity(const AccessAdvisorUsageGranularityType& value) { SetGranularity(value); return *this;} /** *

The level of detail that you want to generate. You can specify whether you * want to generate information about the last attempt to access services or * actions. If you specify service-level granularity, this operation generates only * service data. If you specify action-level granularity, it generates service and * action data. If you don't include this optional parameter, the operation * generates service data.

*/ inline GenerateServiceLastAccessedDetailsRequest& WithGranularity(AccessAdvisorUsageGranularityType&& value) { SetGranularity(std::move(value)); return *this;} private: Aws::String m_arn; bool m_arnHasBeenSet = false; AccessAdvisorUsageGranularityType m_granularity; bool m_granularityHasBeenSet = false; }; } // namespace Model } // namespace IAM } // namespace Aws