AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CoipAddressUsage.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace EC2
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_EC2_API CoipAddressUsage() = default;
36 AWS_EC2_API CoipAddressUsage(const Aws::Utils::Xml::XmlNode& xmlNode);
38
39 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
41
42
44
47 inline const Aws::String& GetAllocationId() const { return m_allocationId; }
48 inline bool AllocationIdHasBeenSet() const { return m_allocationIdHasBeenSet; }
49 template<typename AllocationIdT = Aws::String>
50 void SetAllocationId(AllocationIdT&& value) { m_allocationIdHasBeenSet = true; m_allocationId = std::forward<AllocationIdT>(value); }
51 template<typename AllocationIdT = Aws::String>
52 CoipAddressUsage& WithAllocationId(AllocationIdT&& value) { SetAllocationId(std::forward<AllocationIdT>(value)); return *this;}
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) { m_awsAccountIdHasBeenSet = true; m_awsAccountId = std::forward<AwsAccountIdT>(value); }
63 template<typename AwsAccountIdT = Aws::String>
64 CoipAddressUsage& WithAwsAccountId(AwsAccountIdT&& value) { SetAwsAccountId(std::forward<AwsAccountIdT>(value)); return *this;}
66
68
71 inline const Aws::String& GetAwsService() const { return m_awsService; }
72 inline bool AwsServiceHasBeenSet() const { return m_awsServiceHasBeenSet; }
73 template<typename AwsServiceT = Aws::String>
74 void SetAwsService(AwsServiceT&& value) { m_awsServiceHasBeenSet = true; m_awsService = std::forward<AwsServiceT>(value); }
75 template<typename AwsServiceT = Aws::String>
76 CoipAddressUsage& WithAwsService(AwsServiceT&& value) { SetAwsService(std::forward<AwsServiceT>(value)); return *this;}
78
80
83 inline const Aws::String& GetCoIp() const { return m_coIp; }
84 inline bool CoIpHasBeenSet() const { return m_coIpHasBeenSet; }
85 template<typename CoIpT = Aws::String>
86 void SetCoIp(CoIpT&& value) { m_coIpHasBeenSet = true; m_coIp = std::forward<CoIpT>(value); }
87 template<typename CoIpT = Aws::String>
88 CoipAddressUsage& WithCoIp(CoIpT&& value) { SetCoIp(std::forward<CoIpT>(value)); return *this;}
90 private:
91
92 Aws::String m_allocationId;
93 bool m_allocationIdHasBeenSet = false;
94
95 Aws::String m_awsAccountId;
96 bool m_awsAccountIdHasBeenSet = false;
97
98 Aws::String m_awsService;
99 bool m_awsServiceHasBeenSet = false;
100
101 Aws::String m_coIp;
102 bool m_coIpHasBeenSet = false;
103 };
104
105} // namespace Model
106} // namespace EC2
107} // 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