1 /**
2  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3  * SPDX-License-Identifier: Apache-2.0.
4  */
5 
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 <aws/ec2/model/TransitGatewayAttachmentResourceType.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Xml
18 {
19   class XmlNode;
20 } // namespace Xml
21 } // namespace Utils
22 namespace EC2
23 {
24 namespace Model
25 {
26 
27   /**
28    * <p>Describes a transit gateway prefix list attachment.</p><p><h3>See Also:</h3>
29    * <a
30    * href="http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/TransitGatewayPrefixListAttachment">AWS
31    * API Reference</a></p>
32    */
33   class AWS_EC2_API TransitGatewayPrefixListAttachment
34   {
35   public:
36     TransitGatewayPrefixListAttachment();
37     TransitGatewayPrefixListAttachment(const Aws::Utils::Xml::XmlNode& xmlNode);
38     TransitGatewayPrefixListAttachment& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
39 
40     void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41     void OutputToStream(Aws::OStream& oStream, const char* location) const;
42 
43 
44     /**
45      * <p>The ID of the attachment.</p>
46      */
GetTransitGatewayAttachmentId()47     inline const Aws::String& GetTransitGatewayAttachmentId() const{ return m_transitGatewayAttachmentId; }
48 
49     /**
50      * <p>The ID of the attachment.</p>
51      */
TransitGatewayAttachmentIdHasBeenSet()52     inline bool TransitGatewayAttachmentIdHasBeenSet() const { return m_transitGatewayAttachmentIdHasBeenSet; }
53 
54     /**
55      * <p>The ID of the attachment.</p>
56      */
SetTransitGatewayAttachmentId(const Aws::String & value)57     inline void SetTransitGatewayAttachmentId(const Aws::String& value) { m_transitGatewayAttachmentIdHasBeenSet = true; m_transitGatewayAttachmentId = value; }
58 
59     /**
60      * <p>The ID of the attachment.</p>
61      */
SetTransitGatewayAttachmentId(Aws::String && value)62     inline void SetTransitGatewayAttachmentId(Aws::String&& value) { m_transitGatewayAttachmentIdHasBeenSet = true; m_transitGatewayAttachmentId = std::move(value); }
63 
64     /**
65      * <p>The ID of the attachment.</p>
66      */
SetTransitGatewayAttachmentId(const char * value)67     inline void SetTransitGatewayAttachmentId(const char* value) { m_transitGatewayAttachmentIdHasBeenSet = true; m_transitGatewayAttachmentId.assign(value); }
68 
69     /**
70      * <p>The ID of the attachment.</p>
71      */
WithTransitGatewayAttachmentId(const Aws::String & value)72     inline TransitGatewayPrefixListAttachment& WithTransitGatewayAttachmentId(const Aws::String& value) { SetTransitGatewayAttachmentId(value); return *this;}
73 
74     /**
75      * <p>The ID of the attachment.</p>
76      */
WithTransitGatewayAttachmentId(Aws::String && value)77     inline TransitGatewayPrefixListAttachment& WithTransitGatewayAttachmentId(Aws::String&& value) { SetTransitGatewayAttachmentId(std::move(value)); return *this;}
78 
79     /**
80      * <p>The ID of the attachment.</p>
81      */
WithTransitGatewayAttachmentId(const char * value)82     inline TransitGatewayPrefixListAttachment& WithTransitGatewayAttachmentId(const char* value) { SetTransitGatewayAttachmentId(value); return *this;}
83 
84 
85     /**
86      * <p>The resource type. Note that the <code>tgw-peering</code> resource type has
87      * been deprecated.</p>
88      */
GetResourceType()89     inline const TransitGatewayAttachmentResourceType& GetResourceType() const{ return m_resourceType; }
90 
91     /**
92      * <p>The resource type. Note that the <code>tgw-peering</code> resource type has
93      * been deprecated.</p>
94      */
ResourceTypeHasBeenSet()95     inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
96 
97     /**
98      * <p>The resource type. Note that the <code>tgw-peering</code> resource type has
99      * been deprecated.</p>
100      */
SetResourceType(const TransitGatewayAttachmentResourceType & value)101     inline void SetResourceType(const TransitGatewayAttachmentResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
102 
103     /**
104      * <p>The resource type. Note that the <code>tgw-peering</code> resource type has
105      * been deprecated.</p>
106      */
SetResourceType(TransitGatewayAttachmentResourceType && value)107     inline void SetResourceType(TransitGatewayAttachmentResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
108 
109     /**
110      * <p>The resource type. Note that the <code>tgw-peering</code> resource type has
111      * been deprecated.</p>
112      */
WithResourceType(const TransitGatewayAttachmentResourceType & value)113     inline TransitGatewayPrefixListAttachment& WithResourceType(const TransitGatewayAttachmentResourceType& value) { SetResourceType(value); return *this;}
114 
115     /**
116      * <p>The resource type. Note that the <code>tgw-peering</code> resource type has
117      * been deprecated.</p>
118      */
WithResourceType(TransitGatewayAttachmentResourceType && value)119     inline TransitGatewayPrefixListAttachment& WithResourceType(TransitGatewayAttachmentResourceType&& value) { SetResourceType(std::move(value)); return *this;}
120 
121 
122     /**
123      * <p>The ID of the resource.</p>
124      */
GetResourceId()125     inline const Aws::String& GetResourceId() const{ return m_resourceId; }
126 
127     /**
128      * <p>The ID of the resource.</p>
129      */
ResourceIdHasBeenSet()130     inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
131 
132     /**
133      * <p>The ID of the resource.</p>
134      */
SetResourceId(const Aws::String & value)135     inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
136 
137     /**
138      * <p>The ID of the resource.</p>
139      */
SetResourceId(Aws::String && value)140     inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
141 
142     /**
143      * <p>The ID of the resource.</p>
144      */
SetResourceId(const char * value)145     inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
146 
147     /**
148      * <p>The ID of the resource.</p>
149      */
WithResourceId(const Aws::String & value)150     inline TransitGatewayPrefixListAttachment& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
151 
152     /**
153      * <p>The ID of the resource.</p>
154      */
WithResourceId(Aws::String && value)155     inline TransitGatewayPrefixListAttachment& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
156 
157     /**
158      * <p>The ID of the resource.</p>
159      */
WithResourceId(const char * value)160     inline TransitGatewayPrefixListAttachment& WithResourceId(const char* value) { SetResourceId(value); return *this;}
161 
162   private:
163 
164     Aws::String m_transitGatewayAttachmentId;
165     bool m_transitGatewayAttachmentIdHasBeenSet;
166 
167     TransitGatewayAttachmentResourceType m_resourceType;
168     bool m_resourceTypeHasBeenSet;
169 
170     Aws::String m_resourceId;
171     bool m_resourceIdHasBeenSet;
172   };
173 
174 } // namespace Model
175 } // namespace EC2
176 } // namespace Aws
177