Microsoft Azure Storage Client Library for C++  7.5.0
The Microsoft Azure Storage Client Library for C++ is a library for working with the Azure Storage Services in C++.
Public Member Functions | List of all members
azure::storage::storage_uri Class Reference

Contains the URIs for both the primary and secondary locations of a Windows Azure Storage resource. More...

Public Member Functions

 storage_uri ()
 Initializes a new instance of the azure::storage::storage_uri class. More...
 
WASTORAGE_API storage_uri (web::http::uri primary_uri)
 Initializes a new instance of the azure::storage::storage_uri class using the primary endpoint. More...
 
WASTORAGE_API storage_uri (web::http::uri primary_uri, web::http::uri secondary_uri)
 Initializes a new instance of the azure::storage::storage_uri class using the primary endpoint. More...
 
const web::http::uri & primary_uri () const
 Gets the primary endpoint. More...
 
const web::http::uri & secondary_uri () const
 Gets the secondary endpoint. More...
 
const utility::string_t & path () const
 Gets the path portion of the primary endpoint. More...
 
const web::http::uri & get_location_uri (storage_location location)
 Gets the endpoint for a specified location. More...
 

Detailed Description

Contains the URIs for both the primary and secondary locations of a Windows Azure Storage resource.

Constructor & Destructor Documentation

◆ storage_uri() [1/3]

azure::storage::storage_uri::storage_uri ( )
inline

Initializes a new instance of the azure::storage::storage_uri class.

◆ storage_uri() [2/3]

WASTORAGE_API azure::storage::storage_uri::storage_uri ( web::http::uri  primary_uri)

Initializes a new instance of the azure::storage::storage_uri class using the primary endpoint.

Parameters
primary_uriThe endpoint for the primary location.

◆ storage_uri() [3/3]

WASTORAGE_API azure::storage::storage_uri::storage_uri ( web::http::uri  primary_uri,
web::http::uri  secondary_uri 
)

Initializes a new instance of the azure::storage::storage_uri class using the primary endpoint.

Parameters
primary_uriThe endpoint for the primary location.
secondary_uriThe endpoint for the secondary location.

Member Function Documentation

◆ get_location_uri()

const web::http::uri& azure::storage::storage_uri::get_location_uri ( storage_location  location)
inline

Gets the endpoint for a specified location.

Parameters
locationAn azure::storage::storage_location object.
Returns
The location endpoint.

◆ path()

const utility::string_t& azure::storage::storage_uri::path ( ) const
inline

Gets the path portion of the primary endpoint.

Returns
A string containing the path portion of the primary endpoint.

◆ primary_uri()

const web::http::uri& azure::storage::storage_uri::primary_uri ( ) const
inline

Gets the primary endpoint.

Returns
The primary endpoint.

◆ secondary_uri()

const web::http::uri& azure::storage::storage_uri::secondary_uri ( ) const
inline

Gets the secondary endpoint.

Returns
The secondary endpoint.