AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
CreateInstanceProfileResult.h
1
6#pragma once
7#include <aws/iam/IAM_EXPORTS.h>
8#include <aws/iam/model/InstanceProfile.h>
9#include <aws/iam/model/ResponseMetadata.h>
10
11#include <utility>
12
13namespace Aws {
14template <typename RESULT_TYPE>
15class AmazonWebServiceResult;
16
17namespace Utils {
18namespace Xml {
19class XmlDocument;
20} // namespace Xml
21} // namespace Utils
22namespace IAM {
23namespace Model {
32 public:
33 AWS_IAM_API CreateInstanceProfileResult() = default;
36
38
41 inline const InstanceProfile& GetInstanceProfile() const { return m_instanceProfile; }
42 template <typename InstanceProfileT = InstanceProfile>
43 void SetInstanceProfile(InstanceProfileT&& value) {
44 m_instanceProfileHasBeenSet = true;
45 m_instanceProfile = std::forward<InstanceProfileT>(value);
46 }
47 template <typename InstanceProfileT = InstanceProfile>
49 SetInstanceProfile(std::forward<InstanceProfileT>(value));
50 return *this;
51 }
53
55
56 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
57 template <typename ResponseMetadataT = ResponseMetadata>
58 void SetResponseMetadata(ResponseMetadataT&& value) {
59 m_responseMetadataHasBeenSet = true;
60 m_responseMetadata = std::forward<ResponseMetadataT>(value);
61 }
62 template <typename ResponseMetadataT = ResponseMetadata>
64 SetResponseMetadata(std::forward<ResponseMetadataT>(value));
65 return *this;
66 }
68 private:
69 InstanceProfile m_instanceProfile;
70
71 ResponseMetadata m_responseMetadata;
72 bool m_instanceProfileHasBeenSet = false;
73 bool m_responseMetadataHasBeenSet = false;
74};
75
76} // namespace Model
77} // namespace IAM
78} // namespace Aws
CreateInstanceProfileResult & WithInstanceProfile(InstanceProfileT &&value)
CreateInstanceProfileResult & WithResponseMetadata(ResponseMetadataT &&value)
AWS_IAM_API CreateInstanceProfileResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
AWS_IAM_API CreateInstanceProfileResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
AWS_IAM_API CreateInstanceProfileResult()=default
Aws::Utils::Xml::XmlDocument XmlDocument