AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
DescribePrincipalIdFormatResponse.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ec2/model/ResponseMetadata.h>
11#include <aws/ec2/model/PrincipalIdFormat.h>
12#include <utility>
13
14namespace Aws
15{
16template<typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils
20{
21namespace Xml
22{
23 class XmlDocument;
24} // namespace Xml
25} // namespace Utils
26namespace EC2
27{
28namespace Model
29{
31 {
32 public:
33 AWS_EC2_API DescribePrincipalIdFormatResponse() = default;
36
37
39
42 inline const Aws::Vector<PrincipalIdFormat>& GetPrincipals() const { return m_principals; }
43 template<typename PrincipalsT = Aws::Vector<PrincipalIdFormat>>
44 void SetPrincipals(PrincipalsT&& value) { m_principalsHasBeenSet = true; m_principals = std::forward<PrincipalsT>(value); }
45 template<typename PrincipalsT = Aws::Vector<PrincipalIdFormat>>
46 DescribePrincipalIdFormatResponse& WithPrincipals(PrincipalsT&& value) { SetPrincipals(std::forward<PrincipalsT>(value)); return *this;}
47 template<typename PrincipalsT = PrincipalIdFormat>
48 DescribePrincipalIdFormatResponse& AddPrincipals(PrincipalsT&& value) { m_principalsHasBeenSet = true; m_principals.emplace_back(std::forward<PrincipalsT>(value)); return *this; }
50
52
56 inline const Aws::String& GetNextToken() const { return m_nextToken; }
57 template<typename NextTokenT = Aws::String>
58 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
59 template<typename NextTokenT = Aws::String>
60 DescribePrincipalIdFormatResponse& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
62
64
65 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
66 template<typename ResponseMetadataT = ResponseMetadata>
67 void SetResponseMetadata(ResponseMetadataT&& value) { m_responseMetadataHasBeenSet = true; m_responseMetadata = std::forward<ResponseMetadataT>(value); }
68 template<typename ResponseMetadataT = ResponseMetadata>
69 DescribePrincipalIdFormatResponse& WithResponseMetadata(ResponseMetadataT&& value) { SetResponseMetadata(std::forward<ResponseMetadataT>(value)); return *this;}
71 private:
72
74 bool m_principalsHasBeenSet = false;
75
76 Aws::String m_nextToken;
77 bool m_nextTokenHasBeenSet = false;
78
79 ResponseMetadata m_responseMetadata;
80 bool m_responseMetadataHasBeenSet = false;
81 };
82
83} // namespace Model
84} // namespace EC2
85} // namespace Aws
DescribePrincipalIdFormatResponse & WithResponseMetadata(ResponseMetadataT &&value)
DescribePrincipalIdFormatResponse & WithPrincipals(PrincipalsT &&value)
DescribePrincipalIdFormatResponse & AddPrincipals(PrincipalsT &&value)
AWS_EC2_API DescribePrincipalIdFormatResponse & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
AWS_EC2_API DescribePrincipalIdFormatResponse(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
DescribePrincipalIdFormatResponse & WithNextToken(NextTokenT &&value)
const Aws::Vector< PrincipalIdFormat > & GetPrincipals() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Xml::XmlDocument XmlDocument