AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GenerateServiceLastAccessedDetailsRequest.h
1
6#pragma once
7#include <aws/iam/IAM_EXPORTS.h>
8#include <aws/iam/IAMRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/iam/model/AccessAdvisorUsageGranularityType.h>
11#include <utility>
12
13namespace Aws
14{
15namespace IAM
16{
17namespace Model
18{
19
23 {
24 public:
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "GenerateServiceLastAccessedDetails"; }
32
33 AWS_IAM_API Aws::String SerializePayload() const override;
34
35 protected:
36 AWS_IAM_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
37
38 public:
39
41
46 inline const Aws::String& GetArn() const{ return m_arn; }
47 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
48 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
49 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
50 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
51 inline GenerateServiceLastAccessedDetailsRequest& WithArn(const Aws::String& value) { SetArn(value); return *this;}
52 inline GenerateServiceLastAccessedDetailsRequest& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
53 inline GenerateServiceLastAccessedDetailsRequest& WithArn(const char* value) { SetArn(value); return *this;}
55
57
65 inline const AccessAdvisorUsageGranularityType& GetGranularity() const{ return m_granularity; }
66 inline bool GranularityHasBeenSet() const { return m_granularityHasBeenSet; }
67 inline void SetGranularity(const AccessAdvisorUsageGranularityType& value) { m_granularityHasBeenSet = true; m_granularity = value; }
68 inline void SetGranularity(AccessAdvisorUsageGranularityType&& value) { m_granularityHasBeenSet = true; m_granularity = std::move(value); }
72 private:
73
74 Aws::String m_arn;
75 bool m_arnHasBeenSet = false;
76
78 bool m_granularityHasBeenSet = false;
79 };
80
81} // namespace Model
82} // namespace IAM
83} // namespace Aws
AWS_IAM_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
GenerateServiceLastAccessedDetailsRequest & WithArn(Aws::String &&value)
GenerateServiceLastAccessedDetailsRequest & WithArn(const char *value)
GenerateServiceLastAccessedDetailsRequest & WithGranularity(AccessAdvisorUsageGranularityType &&value)
GenerateServiceLastAccessedDetailsRequest & WithArn(const Aws::String &value)
GenerateServiceLastAccessedDetailsRequest & WithGranularity(const AccessAdvisorUsageGranularityType &value)
AWS_IAM_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String