AWS SDK for C++  1.8.100
AWS SDK for C++
Public Member Functions | List of all members
Aws::IAM::Model::Tag Class Reference

#include <Tag.h>

Public Member Functions

 Tag ()
 
 Tag (const Aws::Utils::Xml::XmlNode &xmlNode)
 
Tagoperator= (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 Aws::StringGetKey () const
 
bool KeyHasBeenSet () const
 
void SetKey (const Aws::String &value)
 
void SetKey (Aws::String &&value)
 
void SetKey (const char *value)
 
TagWithKey (const Aws::String &value)
 
TagWithKey (Aws::String &&value)
 
TagWithKey (const char *value)
 
const Aws::StringGetValue () const
 
bool ValueHasBeenSet () const
 
void SetValue (const Aws::String &value)
 
void SetValue (Aws::String &&value)
 
void SetValue (const char *value)
 
TagWithValue (const Aws::String &value)
 
TagWithValue (Aws::String &&value)
 
TagWithValue (const char *value)
 

Detailed Description

A structure that represents user-provided metadata that can be associated with a resource such as an IAM user or role. For more information about tagging, see Tagging IAM Identities in the IAM User Guide.

See Also:

AWS API Reference

Definition at line 35 of file Tag.h.

Constructor & Destructor Documentation

◆ Tag() [1/2]

Aws::IAM::Model::Tag::Tag ( )

◆ Tag() [2/2]

Aws::IAM::Model::Tag::Tag ( const Aws::Utils::Xml::XmlNode xmlNode)

Member Function Documentation

◆ GetKey()

const Aws::String& Aws::IAM::Model::Tag::GetKey ( ) const
inline

The key name that can be used to look up or retrieve the associated value. For example, Department or Cost Center are common choices.

Definition at line 51 of file Tag.h.

◆ GetValue()

const Aws::String& Aws::IAM::Model::Tag::GetValue ( ) const
inline

The value associated with this tag. For example, tags with a key name of Department could have values such as Human Resources, Accounting, and Support. Tags with a key name of Cost Center might have values that consist of the number associated with the different cost centers in your company. Typically, many resources have tags with the same key name but with different values.

AWS always interprets the tag Value as a single string. If you need to store an array, you can store comma-separated values in the string. However, you must interpret the value in your code.

Definition at line 114 of file Tag.h.

◆ KeyHasBeenSet()

bool Aws::IAM::Model::Tag::KeyHasBeenSet ( ) const
inline

The key name that can be used to look up or retrieve the associated value. For example, Department or Cost Center are common choices.

Definition at line 58 of file Tag.h.

◆ operator=()

Tag& Aws::IAM::Model::Tag::operator= ( const Aws::Utils::Xml::XmlNode xmlNode)

◆ OutputToStream() [1/2]

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

◆ OutputToStream() [2/2]

void Aws::IAM::Model::Tag::OutputToStream ( Aws::OStream oStream,
const char *  location 
) const

◆ SetKey() [1/3]

void Aws::IAM::Model::Tag::SetKey ( const Aws::String value)
inline

The key name that can be used to look up or retrieve the associated value. For example, Department or Cost Center are common choices.

Definition at line 65 of file Tag.h.

◆ SetKey() [2/3]

void Aws::IAM::Model::Tag::SetKey ( Aws::String &&  value)
inline

The key name that can be used to look up or retrieve the associated value. For example, Department or Cost Center are common choices.

Definition at line 72 of file Tag.h.

◆ SetKey() [3/3]

void Aws::IAM::Model::Tag::SetKey ( const char *  value)
inline

The key name that can be used to look up or retrieve the associated value. For example, Department or Cost Center are common choices.

Definition at line 79 of file Tag.h.

◆ SetValue() [1/3]

void Aws::IAM::Model::Tag::SetValue ( const Aws::String value)
inline

The value associated with this tag. For example, tags with a key name of Department could have values such as Human Resources, Accounting, and Support. Tags with a key name of Cost Center might have values that consist of the number associated with the different cost centers in your company. Typically, many resources have tags with the same key name but with different values.

AWS always interprets the tag Value as a single string. If you need to store an array, you can store comma-separated values in the string. However, you must interpret the value in your code.

Definition at line 140 of file Tag.h.

◆ SetValue() [2/3]

void Aws::IAM::Model::Tag::SetValue ( Aws::String &&  value)
inline

The value associated with this tag. For example, tags with a key name of Department could have values such as Human Resources, Accounting, and Support. Tags with a key name of Cost Center might have values that consist of the number associated with the different cost centers in your company. Typically, many resources have tags with the same key name but with different values.

AWS always interprets the tag Value as a single string. If you need to store an array, you can store comma-separated values in the string. However, you must interpret the value in your code.

Definition at line 153 of file Tag.h.

◆ SetValue() [3/3]

void Aws::IAM::Model::Tag::SetValue ( const char *  value)
inline

The value associated with this tag. For example, tags with a key name of Department could have values such as Human Resources, Accounting, and Support. Tags with a key name of Cost Center might have values that consist of the number associated with the different cost centers in your company. Typically, many resources have tags with the same key name but with different values.

AWS always interprets the tag Value as a single string. If you need to store an array, you can store comma-separated values in the string. However, you must interpret the value in your code.

Definition at line 166 of file Tag.h.

◆ ValueHasBeenSet()

bool Aws::IAM::Model::Tag::ValueHasBeenSet ( ) const
inline

The value associated with this tag. For example, tags with a key name of Department could have values such as Human Resources, Accounting, and Support. Tags with a key name of Cost Center might have values that consist of the number associated with the different cost centers in your company. Typically, many resources have tags with the same key name but with different values.

AWS always interprets the tag Value as a single string. If you need to store an array, you can store comma-separated values in the string. However, you must interpret the value in your code.

Definition at line 127 of file Tag.h.

◆ WithKey() [1/3]

Tag& Aws::IAM::Model::Tag::WithKey ( const Aws::String value)
inline

The key name that can be used to look up or retrieve the associated value. For example, Department or Cost Center are common choices.

Definition at line 86 of file Tag.h.

◆ WithKey() [2/3]

Tag& Aws::IAM::Model::Tag::WithKey ( Aws::String &&  value)
inline

The key name that can be used to look up or retrieve the associated value. For example, Department or Cost Center are common choices.

Definition at line 93 of file Tag.h.

◆ WithKey() [3/3]

Tag& Aws::IAM::Model::Tag::WithKey ( const char *  value)
inline

The key name that can be used to look up or retrieve the associated value. For example, Department or Cost Center are common choices.

Definition at line 100 of file Tag.h.

◆ WithValue() [1/3]

Tag& Aws::IAM::Model::Tag::WithValue ( const Aws::String value)
inline

The value associated with this tag. For example, tags with a key name of Department could have values such as Human Resources, Accounting, and Support. Tags with a key name of Cost Center might have values that consist of the number associated with the different cost centers in your company. Typically, many resources have tags with the same key name but with different values.

AWS always interprets the tag Value as a single string. If you need to store an array, you can store comma-separated values in the string. However, you must interpret the value in your code.

Definition at line 179 of file Tag.h.

◆ WithValue() [2/3]

Tag& Aws::IAM::Model::Tag::WithValue ( Aws::String &&  value)
inline

The value associated with this tag. For example, tags with a key name of Department could have values such as Human Resources, Accounting, and Support. Tags with a key name of Cost Center might have values that consist of the number associated with the different cost centers in your company. Typically, many resources have tags with the same key name but with different values.

AWS always interprets the tag Value as a single string. If you need to store an array, you can store comma-separated values in the string. However, you must interpret the value in your code.

Definition at line 192 of file Tag.h.

◆ WithValue() [3/3]

Tag& Aws::IAM::Model::Tag::WithValue ( const char *  value)
inline

The value associated with this tag. For example, tags with a key name of Department could have values such as Human Resources, Accounting, and Support. Tags with a key name of Cost Center might have values that consist of the number associated with the different cost centers in your company. Typically, many resources have tags with the same key name but with different values.

AWS always interprets the tag Value as a single string. If you need to store an array, you can store comma-separated values in the string. However, you must interpret the value in your code.

Definition at line 205 of file Tag.h.


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