AWS SDK for C++  1.8.74
AWS SDK for C++
Public Member Functions | List of all members
Aws::EC2::Model::TagSpecification Class Reference

#include <TagSpecification.h>

Public Member Functions

 TagSpecification ()
 
 TagSpecification (const Aws::Utils::Xml::XmlNode &xmlNode)
 
TagSpecificationoperator= (const Aws::Utils::Xml::XmlNode &xmlNode)
 
void OutputToStream (Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
 
void OutputToStream (Aws::OStream &oStream, const char *location) const
 
const ResourceTypeGetResourceType () const
 
bool ResourceTypeHasBeenSet () const
 
void SetResourceType (const ResourceType &value)
 
void SetResourceType (ResourceType &&value)
 
TagSpecificationWithResourceType (const ResourceType &value)
 
TagSpecificationWithResourceType (ResourceType &&value)
 
const Aws::Vector< Tag > & GetTags () const
 
bool TagsHasBeenSet () const
 
void SetTags (const Aws::Vector< Tag > &value)
 
void SetTags (Aws::Vector< Tag > &&value)
 
TagSpecificationWithTags (const Aws::Vector< Tag > &value)
 
TagSpecificationWithTags (Aws::Vector< Tag > &&value)
 
TagSpecificationAddTags (const Tag &value)
 
TagSpecificationAddTags (Tag &&value)
 

Detailed Description

The tags to apply to a resource when the resource is being created.

See Also:

AWS API Reference

Definition at line 34 of file TagSpecification.h.

Constructor & Destructor Documentation

◆ TagSpecification() [1/2]

Aws::EC2::Model::TagSpecification::TagSpecification ( )

◆ TagSpecification() [2/2]

Aws::EC2::Model::TagSpecification::TagSpecification ( const Aws::Utils::Xml::XmlNode xmlNode)

Member Function Documentation

◆ AddTags() [1/2]

TagSpecification& Aws::EC2::Model::TagSpecification::AddTags ( const Tag value)
inline

The tags to apply to the resource.

Definition at line 241 of file TagSpecification.h.

◆ AddTags() [2/2]

TagSpecification& Aws::EC2::Model::TagSpecification::AddTags ( Tag &&  value)
inline

The tags to apply to the resource.

Definition at line 246 of file TagSpecification.h.

◆ GetResourceType()

const ResourceType& Aws::EC2::Model::TagSpecification::GetResourceType ( ) const
inline

The type of resource to tag. Currently, the resource types that support tagging on creation are: capacity-reservation | client-vpn-endpoint | customer-gateway | dedicated-host | dhcp-options | export-image-task | export-instance-task | fleet | fpga-image | host-reservation | import-image-task | import-snapshot-task | instance | internet-gateway | ipv4pool-ec2 | ipv6pool-ec2 | key-pair | launch-template | placement-group | prefix-list | natgateway | network-acl | route-table | security-group | spot-fleet-request | spot-instances-request | snapshot | subnet | traffic-mirror-filter | traffic-mirror-session | traffic-mirror-target | transit-gateway | transit-gateway-attachment | transit-gateway-route-table | volume |vpc | vpc-peering-connection | vpc-endpoint (for interface and gateway endpoints) | vpc-endpoint-service (for AWS PrivateLink) | vpc-flow-log | vpn-connection | vpn-gateway.

To tag a resource after it has been created, see CreateTags.

Definition at line 70 of file TagSpecification.h.

◆ GetTags()

const Aws::Vector<Tag>& Aws::EC2::Model::TagSpecification::GetTags ( ) const
inline

The tags to apply to the resource.

Definition at line 211 of file TagSpecification.h.

◆ operator=()

TagSpecification& Aws::EC2::Model::TagSpecification::operator= ( const Aws::Utils::Xml::XmlNode xmlNode)

◆ OutputToStream() [1/2]

void Aws::EC2::Model::TagSpecification::OutputToStream ( Aws::OStream ostream,
const char *  location,
unsigned  index,
const char *  locationValue 
) const

◆ OutputToStream() [2/2]

void Aws::EC2::Model::TagSpecification::OutputToStream ( Aws::OStream oStream,
const char *  location 
) const

◆ ResourceTypeHasBeenSet()

bool Aws::EC2::Model::TagSpecification::ResourceTypeHasBeenSet ( ) const
inline

The type of resource to tag. Currently, the resource types that support tagging on creation are: capacity-reservation | client-vpn-endpoint | customer-gateway | dedicated-host | dhcp-options | export-image-task | export-instance-task | fleet | fpga-image | host-reservation | import-image-task | import-snapshot-task | instance | internet-gateway | ipv4pool-ec2 | ipv6pool-ec2 | key-pair | launch-template | placement-group | prefix-list | natgateway | network-acl | route-table | security-group | spot-fleet-request | spot-instances-request | snapshot | subnet | traffic-mirror-filter | traffic-mirror-session | traffic-mirror-target | transit-gateway | transit-gateway-attachment | transit-gateway-route-table | volume |vpc | vpc-peering-connection | vpc-endpoint (for interface and gateway endpoints) | vpc-endpoint-service (for AWS PrivateLink) | vpc-flow-log | vpn-connection | vpn-gateway.

To tag a resource after it has been created, see CreateTags.

Definition at line 97 of file TagSpecification.h.

◆ SetResourceType() [1/2]

void Aws::EC2::Model::TagSpecification::SetResourceType ( const ResourceType value)
inline

The type of resource to tag. Currently, the resource types that support tagging on creation are: capacity-reservation | client-vpn-endpoint | customer-gateway | dedicated-host | dhcp-options | export-image-task | export-instance-task | fleet | fpga-image | host-reservation | import-image-task | import-snapshot-task | instance | internet-gateway | ipv4pool-ec2 | ipv6pool-ec2 | key-pair | launch-template | placement-group | prefix-list | natgateway | network-acl | route-table | security-group | spot-fleet-request | spot-instances-request | snapshot | subnet | traffic-mirror-filter | traffic-mirror-session | traffic-mirror-target | transit-gateway | transit-gateway-attachment | transit-gateway-route-table | volume |vpc | vpc-peering-connection | vpc-endpoint (for interface and gateway endpoints) | vpc-endpoint-service (for AWS PrivateLink) | vpc-flow-log | vpn-connection | vpn-gateway.

To tag a resource after it has been created, see CreateTags.

Definition at line 124 of file TagSpecification.h.

◆ SetResourceType() [2/2]

void Aws::EC2::Model::TagSpecification::SetResourceType ( ResourceType &&  value)
inline

The type of resource to tag. Currently, the resource types that support tagging on creation are: capacity-reservation | client-vpn-endpoint | customer-gateway | dedicated-host | dhcp-options | export-image-task | export-instance-task | fleet | fpga-image | host-reservation | import-image-task | import-snapshot-task | instance | internet-gateway | ipv4pool-ec2 | ipv6pool-ec2 | key-pair | launch-template | placement-group | prefix-list | natgateway | network-acl | route-table | security-group | spot-fleet-request | spot-instances-request | snapshot | subnet | traffic-mirror-filter | traffic-mirror-session | traffic-mirror-target | transit-gateway | transit-gateway-attachment | transit-gateway-route-table | volume |vpc | vpc-peering-connection | vpc-endpoint (for interface and gateway endpoints) | vpc-endpoint-service (for AWS PrivateLink) | vpc-flow-log | vpn-connection | vpn-gateway.

To tag a resource after it has been created, see CreateTags.

Definition at line 151 of file TagSpecification.h.

◆ SetTags() [1/2]

void Aws::EC2::Model::TagSpecification::SetTags ( const Aws::Vector< Tag > &  value)
inline

The tags to apply to the resource.

Definition at line 221 of file TagSpecification.h.

◆ SetTags() [2/2]

void Aws::EC2::Model::TagSpecification::SetTags ( Aws::Vector< Tag > &&  value)
inline

The tags to apply to the resource.

Definition at line 226 of file TagSpecification.h.

◆ TagsHasBeenSet()

bool Aws::EC2::Model::TagSpecification::TagsHasBeenSet ( ) const
inline

The tags to apply to the resource.

Definition at line 216 of file TagSpecification.h.

◆ WithResourceType() [1/2]

TagSpecification& Aws::EC2::Model::TagSpecification::WithResourceType ( const ResourceType value)
inline

The type of resource to tag. Currently, the resource types that support tagging on creation are: capacity-reservation | client-vpn-endpoint | customer-gateway | dedicated-host | dhcp-options | export-image-task | export-instance-task | fleet | fpga-image | host-reservation | import-image-task | import-snapshot-task | instance | internet-gateway | ipv4pool-ec2 | ipv6pool-ec2 | key-pair | launch-template | placement-group | prefix-list | natgateway | network-acl | route-table | security-group | spot-fleet-request | spot-instances-request | snapshot | subnet | traffic-mirror-filter | traffic-mirror-session | traffic-mirror-target | transit-gateway | transit-gateway-attachment | transit-gateway-route-table | volume |vpc | vpc-peering-connection | vpc-endpoint (for interface and gateway endpoints) | vpc-endpoint-service (for AWS PrivateLink) | vpc-flow-log | vpn-connection | vpn-gateway.

To tag a resource after it has been created, see CreateTags.

Definition at line 178 of file TagSpecification.h.

◆ WithResourceType() [2/2]

TagSpecification& Aws::EC2::Model::TagSpecification::WithResourceType ( ResourceType &&  value)
inline

The type of resource to tag. Currently, the resource types that support tagging on creation are: capacity-reservation | client-vpn-endpoint | customer-gateway | dedicated-host | dhcp-options | export-image-task | export-instance-task | fleet | fpga-image | host-reservation | import-image-task | import-snapshot-task | instance | internet-gateway | ipv4pool-ec2 | ipv6pool-ec2 | key-pair | launch-template | placement-group | prefix-list | natgateway | network-acl | route-table | security-group | spot-fleet-request | spot-instances-request | snapshot | subnet | traffic-mirror-filter | traffic-mirror-session | traffic-mirror-target | transit-gateway | transit-gateway-attachment | transit-gateway-route-table | volume |vpc | vpc-peering-connection | vpc-endpoint (for interface and gateway endpoints) | vpc-endpoint-service (for AWS PrivateLink) | vpc-flow-log | vpn-connection | vpn-gateway.

To tag a resource after it has been created, see CreateTags.

Definition at line 205 of file TagSpecification.h.

◆ WithTags() [1/2]

TagSpecification& Aws::EC2::Model::TagSpecification::WithTags ( const Aws::Vector< Tag > &  value)
inline

The tags to apply to the resource.

Definition at line 231 of file TagSpecification.h.

◆ WithTags() [2/2]

TagSpecification& Aws::EC2::Model::TagSpecification::WithTags ( Aws::Vector< Tag > &&  value)
inline

The tags to apply to the resource.

Definition at line 236 of file TagSpecification.h.


The documentation for this class was generated from the following file: