AWS SDK for C++

AWS SDK for C++ Version 1.11.937

Loading...
Searching...
No Matches
PutReportDefinitionRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/cur/CostandUsageReportServiceRequest.h>
9#include <aws/cur/CostandUsageReportService_EXPORTS.h>
10#include <aws/cur/model/ReportDefinition.h>
11#include <aws/cur/model/Tag.h>
12
13#include <utility>
14
15namespace Aws {
16namespace CostandUsageReportService {
17namespace Model {
18
25 public:
26 AWS_COSTANDUSAGEREPORTSERVICE_API PutReportDefinitionRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "PutReportDefinition"; }
33
34 AWS_COSTANDUSAGEREPORTSERVICE_API Aws::String SerializePayload() const override;
35
36 AWS_COSTANDUSAGEREPORTSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
39
43 inline const ReportDefinition& GetReportDefinition() const { return m_reportDefinition; }
44 inline bool ReportDefinitionHasBeenSet() const { return m_reportDefinitionHasBeenSet; }
45 template <typename ReportDefinitionT = ReportDefinition>
46 void SetReportDefinition(ReportDefinitionT&& value) {
47 m_reportDefinitionHasBeenSet = true;
48 m_reportDefinition = std::forward<ReportDefinitionT>(value);
49 }
50 template <typename ReportDefinitionT = ReportDefinition>
52 SetReportDefinition(std::forward<ReportDefinitionT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
62 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
63 template <typename TagsT = Aws::Vector<Tag>>
64 void SetTags(TagsT&& value) {
65 m_tagsHasBeenSet = true;
66 m_tags = std::forward<TagsT>(value);
67 }
68 template <typename TagsT = Aws::Vector<Tag>>
70 SetTags(std::forward<TagsT>(value));
71 return *this;
72 }
73 template <typename TagsT = Tag>
75 m_tagsHasBeenSet = true;
76 m_tags.emplace_back(std::forward<TagsT>(value));
77 return *this;
78 }
80 private:
81 ReportDefinition m_reportDefinition;
82
83 Aws::Vector<Tag> m_tags;
84 bool m_reportDefinitionHasBeenSet = false;
85 bool m_tagsHasBeenSet = false;
86};
87
88} // namespace Model
89} // namespace CostandUsageReportService
90} // namespace Aws
AWS_COSTANDUSAGEREPORTSERVICE_API PutReportDefinitionRequest()=default
AWS_COSTANDUSAGEREPORTSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
PutReportDefinitionRequest & WithReportDefinition(ReportDefinitionT &&value)
AWS_COSTANDUSAGEREPORTSERVICE_API Aws::String SerializePayload() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector