AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
CoipAddressUsage.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ec2/EC2_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Xml {
16class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace EC2 {
20namespace Model {
21
29 public:
30 AWS_EC2_API CoipAddressUsage() = default;
31 AWS_EC2_API CoipAddressUsage(const Aws::Utils::Xml::XmlNode& xmlNode);
33
34 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
35 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
36
38
41 inline const Aws::String& GetAllocationId() const { return m_allocationId; }
42 inline bool AllocationIdHasBeenSet() const { return m_allocationIdHasBeenSet; }
43 template <typename AllocationIdT = Aws::String>
44 void SetAllocationId(AllocationIdT&& value) {
45 m_allocationIdHasBeenSet = true;
46 m_allocationId = std::forward<AllocationIdT>(value);
47 }
48 template <typename AllocationIdT = Aws::String>
49 CoipAddressUsage& WithAllocationId(AllocationIdT&& value) {
50 SetAllocationId(std::forward<AllocationIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetAwsAccountId() const { return m_awsAccountId; }
60 inline bool AwsAccountIdHasBeenSet() const { return m_awsAccountIdHasBeenSet; }
61 template <typename AwsAccountIdT = Aws::String>
62 void SetAwsAccountId(AwsAccountIdT&& value) {
63 m_awsAccountIdHasBeenSet = true;
64 m_awsAccountId = std::forward<AwsAccountIdT>(value);
65 }
66 template <typename AwsAccountIdT = Aws::String>
67 CoipAddressUsage& WithAwsAccountId(AwsAccountIdT&& value) {
68 SetAwsAccountId(std::forward<AwsAccountIdT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetAwsService() const { return m_awsService; }
78 inline bool AwsServiceHasBeenSet() const { return m_awsServiceHasBeenSet; }
79 template <typename AwsServiceT = Aws::String>
80 void SetAwsService(AwsServiceT&& value) {
81 m_awsServiceHasBeenSet = true;
82 m_awsService = std::forward<AwsServiceT>(value);
83 }
84 template <typename AwsServiceT = Aws::String>
85 CoipAddressUsage& WithAwsService(AwsServiceT&& value) {
86 SetAwsService(std::forward<AwsServiceT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::String& GetCoIp() const { return m_coIp; }
96 inline bool CoIpHasBeenSet() const { return m_coIpHasBeenSet; }
97 template <typename CoIpT = Aws::String>
98 void SetCoIp(CoIpT&& value) {
99 m_coIpHasBeenSet = true;
100 m_coIp = std::forward<CoIpT>(value);
101 }
102 template <typename CoIpT = Aws::String>
103 CoipAddressUsage& WithCoIp(CoIpT&& value) {
104 SetCoIp(std::forward<CoIpT>(value));
105 return *this;
106 }
108 private:
109 Aws::String m_allocationId;
110
111 Aws::String m_awsAccountId;
112
113 Aws::String m_awsService;
114
115 Aws::String m_coIp;
116 bool m_allocationIdHasBeenSet = false;
117 bool m_awsAccountIdHasBeenSet = false;
118 bool m_awsServiceHasBeenSet = false;
119 bool m_coIpHasBeenSet = false;
120};
121
122} // namespace Model
123} // namespace EC2
124} // namespace Aws
const Aws::String & GetCoIp() const
AWS_EC2_API CoipAddressUsage & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetAwsService(AwsServiceT &&value)
const Aws::String & GetAwsService() const
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const Aws::String & GetAllocationId() const
CoipAddressUsage & WithCoIp(CoIpT &&value)
CoipAddressUsage & WithAllocationId(AllocationIdT &&value)
AWS_EC2_API CoipAddressUsage()=default
void SetAwsAccountId(AwsAccountIdT &&value)
AWS_EC2_API CoipAddressUsage(const Aws::Utils::Xml::XmlNode &xmlNode)
CoipAddressUsage & WithAwsAccountId(AwsAccountIdT &&value)
void SetAllocationId(AllocationIdT &&value)
const Aws::String & GetAwsAccountId() const
CoipAddressUsage & WithAwsService(AwsServiceT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream