| libqtaws
    0.1.0
    UnofficialAWSlibraryforQt-InternalDocumentation | 
Provides AWS region information. More...

| Public Types | |
| enum | CardinalDirection { North = 0x00, NorthNorthEast = 0x10, NorthEast = 0x20, EastNorthEast = 0x30, East = 0x40, EastSouthEast = 0x50, SouthEast = 0x60, SouthSouthEast = 0x70, South = 0x80, SouthSouthWest = 0x90, SouthWest = 0xA0, WestSouthWest = 0xB0, West = 0xC0, WestNorthWest = 0xD0, NorthWest = 0xE0, NortNorthWest = 0xF0 } | 
| enum | MacroRegion { AsiaPacific = 0x100, Europe = 0x300, SouthAmerica = 0xA00, UnitedStates = 0xB00, UnitedStatesGov = 0xC00 } | 
| AWS macro-regions. | |
| enum | Region { InvalidRegion = 0, AP_Northeast_1 = AsiaPacific + NorthEast + 0x1, AP_Southeast_1 = AsiaPacific + SouthEast + 0x1, AP_Southeast_2 = AsiaPacific + SouthEast + 0x2, EU_West_1 = Europe + West + 0x1, SA_East_1 = SouthAmerica + East + 0x1, US_East_1 = UnitedStates + East + 0x1, US_Gov_West_1 = UnitedStatesGov + West + 0x1, US_West_1 = UnitedStates + West + 0x1, US_West_2 = UnitedStates + West + 0x2 } | 
| AWS regions. | |
| Public Member Functions | |
| AwsRegion (const Region region) | |
| Constructs a new AwsRegion object.  More... | |
| AwsRegion (const QString ®ionName) | |
| Constructs a new AwsRegion object.  More... | |
| ~AwsRegion () | |
| AwsRegion destructor. | |
| bool | isValid () const | 
| Is this AWS region object valid?  More... | |
| Region | region () const | 
| Get the region this object represents.  More... | |
| QString | name () const | 
| Get the canonical AWS name for this region.  More... | |
| QString | fullName () const | 
| Get the full name for this region.  More... | |
| QString | hostName (const QString &serviceName) const | 
| Get name of the host the supports a given service for this region.  More... | |
| bool | isSupported (const QString &serviceName, const AwsEndpoint::Transports transports=AwsEndpoint::AnyTransport) const | 
| Is a given service supported for this region?  More... | |
| QStringList | supportedServices (const AwsEndpoint::Transports transports=AwsEndpoint::AnyTransport) const | 
| Get a list of services supported by this region.  More... | |
| Static Public Member Functions | |
| static QString | name (const Region ®ion) | 
| Get the canonical AWS name for a region.  More... | |
| static QString | fullName (const Region ®ion) | 
| Get the full name for an AWS region.  More... | |
| static Region | fromName (const QString ®ionName) | 
| Get an AwsRegion::Region enumeration value from a region name.  More... | |
| Private Attributes | |
| AwsRegionPrivate *const | d_ptr | 
| Internal d-pointer. | |
| Friends | |
| class | TestAwsRegion | 
Provides AWS region information.
Basic usage example:
Definition at line 33 of file awsregion.h.
Bit flags representing the possible cardinal directions of AWS regions within macro-regions.
Definition at line 38 of file awsregion.h.
| AwsRegion::AwsRegion | ( | const Region | region | ) | 
Constructs a new AwsRegion object.
| region | AWS region for this object to represent. | 
Definition at line 48 of file awsregion.cpp.
References region().
| AwsRegion::AwsRegion | ( | const QString & | regionName | ) | 
Constructs a new AwsRegion object.
If regionName is not recognised as a valid AWS region, AwsRegion::isValid will return false for the created object.
| regionName | Name of the AWS region for this object to represent. | 
Definition at line 62 of file awsregion.cpp.
References fromName().
| 
 | static | 
Get an AwsRegion::Region enumeration value from a region name.
| regionName | AWS region name to get an enumeration value for. | 
Definition at line 260 of file awsregion.cpp.
Referenced by AwsRegion().
| QString AwsRegion::fullName | ( | ) | const | 
Get the full name for this region.
This returns a humand-readable name for this object's region. For example, for the AwsRegion::US_East_1 region, this will return something like "US East (Northern Virginia) Region".
These full names were gleaned from http://aws.amazon.com/about-aws/globalinfrastructure/ and http://docs.aws.amazon.com/general/latest/gr/rande.html.
Definition at line 167 of file awsregion.cpp.
References region().
| 
 | static | 
Get the full name for an AWS region.
This returns a humand-readable name for the specified AWS region. For example, for the AwsRegion::US_East_1 region, this will return something like "US East (Northern Virginia) Region".
These full names were gleaned from http://aws.amazon.com/about-aws/globalinfrastructure/ and http://docs.aws.amazon.com/general/latest/gr/rande.html.
| region | AWS region to get the full name of. | 
Definition at line 190 of file awsregion.cpp.
| QString AwsRegion::hostName | ( | const QString & | serviceName | ) | const | 
Get name of the host the supports a given service for this region.
| serviceName | The service to get the hostname for. | 
Definition at line 216 of file awsregion.cpp.
References AwsEndpoint::getEndpoint(), and name().
| bool AwsRegion::isSupported | ( | const QString & | serviceName, | 
| const AwsEndpoint::Transports | transports = AwsEndpoint::AnyTransport | ||
| ) | const | 
Is a given service supported for this region?
| serviceName | The service to check support for. | 
| transports | An optional set of transports to test for support. | 
Definition at line 231 of file awsregion.cpp.
References AwsEndpoint::isSupported(), and name().
| bool AwsRegion::isValid | ( | ) | const | 
Is this AWS region object valid?
Any AwsRegion object created using one of the valid AwsRegion::Region enumeration values (ie any but AwsRegion::InvalidRegion) will be considered valid.
However, if an unknown region name is supplied to the overloaded AwsRegion(const QString ®ionName) constructor, then the constructed object will be considered invalid.
true if this object is valid, false otherwise. Definition at line 108 of file awsregion.cpp.
References region().
| QString AwsRegion::name | ( | ) | const | 
Get the canonical AWS name for this region.
Definition at line 120 of file awsregion.cpp.
Referenced by hostName(), isSupported(), and supportedServices().
| 
 | static | 
Get the canonical AWS name for a region.
| region | AWS region to get the canonical name of. | 
region, or null string if region is invalid. Definition at line 133 of file awsregion.cpp.
| AwsRegion::Region AwsRegion::region | ( | ) | const | 
Get the region this object represents.
If this object was given an AwsRegion::Region value during construction, this function will simply return that enumeration value.
If this object was constructed from an AWS region name, then this function will return the AwsRegion::Region enumeration value corresponding to that AWS region name, or AwsRegion::InvalidRegion if the given region name did not name a known, valid AWS region.
Definition at line 90 of file awsregion.cpp.
Referenced by AwsRegion(), fullName(), and isValid().
| QStringList AwsRegion::supportedServices | ( | const AwsEndpoint::Transports | transports = AwsEndpoint::AnyTransport | ) | const | 
Get a list of services supported by this region.
| transports | Optional set of transports to test for support. | 
Definition at line 244 of file awsregion.cpp.
References name(), and AwsEndpoint::supportedServices().
 1.8.9.1
 1.8.9.1