25 #include <olp/core/CoreApi.h>
80 explicit HRN(
const std::string& input);
111 explicit operator bool()
const;
162 const std::string&
GetRegion()
const {
return region_; }
222 std::string partition_;
225 ServiceType service_{ServiceType::Unknown};
231 std::string account_;
234 std::string catalog_id_;
237 std::string layer_id_;
240 std::string group_id_;
243 std::string schema_name_;
246 std::string version_;
250 std::string pipeline_id_;
Allows a Here Resource Name (HRN) to be passed to the operations that require it.
Definition: HRN.h:34
const std::string & GetRegion() const
Returns the region of this HRN.
Definition: HRN.h:162
std::string ToCatalogHRNString() const
Converts this HRN to a string catalog ID.
std::string ToString() const
Converts this HRN to a string.
static HRN FromString(const std::string &input)
Creates the HRN instance from a string.
ServiceType
Defines the objects to which the HRN can refer.
Definition: HRN.h:39
@ Schema
This HRN represents the schema type.
Definition: HRN.h:42
@ Unknown
The service type is unknown.
Definition: HRN.h:40
@ Data
This HRN represents the data catalog.
Definition: HRN.h:41
static std::unique_ptr< HRN > UniqueFromString(const std::string &input)
Creates the unique HRN instance from a string.
const std::string & GetSchemaName() const
Retruns the schema name.
Definition: HRN.h:201
const std::string & GetPipelineId() const
Returns the pipeline ID.
Definition: HRN.h:217
HRN()=default
Default constructor which creates an empty invalid HRN.
ServiceType GetService() const
Returns the service type of this HRN.
Definition: HRN.h:155
const std::string & GetGroupId() const
Returns the group ID.
Definition: HRN.h:194
bool IsNull() const
Checks whether any of the service type fields of the HRN instance are empty.
const std::string & GetPartition() const
Returns the partitions of this HRN.
Definition: HRN.h:148
bool operator!=(const HRN &rhs) const
Checks whether the values of the HRN parameter are not the same as the values of the rhs parameter.
const std::string & GetAccount() const
Returns the account of this HRN.
Definition: HRN.h:169
const std::string & GetVersion() const
Returns the catalog version.
Definition: HRN.h:209
const std::string & GetLayerId() const
Returns the layer ID.
Definition: HRN.h:187
HRN(const std::string &input)
Creates the HRN instance from a string.
bool operator==(const HRN &rhs) const
Checks whether the values of the HRN parameter are the same as the values of the rhs parameter.
const std::string & GetCatalogId() const
Returns the catalog ID.
Definition: HRN.h:178
Rules all the other namespaces.
Definition: AppleSignInProperties.h:24