Google Cloud Storage C++ Client 2.13.0
A C++ Client Library for Google Cloud Storage
Loading...
Searching...
No Matches
Public Member Functions | List of all members
google::cloud::storage::PolicyDocumentCondition Class Reference

Define a condition for a policy document. More...

#include <google/cloud/storage/policy_document.h>

Public Member Functions

 PolicyDocumentCondition ()=default
 
 PolicyDocumentCondition (std::vector< std::string > elements)
 
std::vector< std::string > const & elements () const
 

Static Public Member Functions

Creates different types of PolicyDocumentCondition matchers.
static std::vector< std::string > ExactMatch (std::string const &field, std::string const &value)
 Creates an exact match condition, in the list form syntax. More...
 
static std::vector< std::string > ExactMatchObject (std::string const &field, std::string const &value)
 Creates an exact match condition, but in object form syntax. More...
 
static std::vector< std::string > StartsWith (std::string const &field, std::string const &value)
 Creates an exact match condition, in the list form syntax. More...
 
static std::vector< std::string > ContentLengthRange (std::int32_t min_range, std::int32_t max_range)
 Creates an exact match condition, in the list form syntax. More...
 

Detailed Description

Define a condition for a policy document.

Constructor & Destructor Documentation

◆ PolicyDocumentCondition() [1/2]

google::cloud::storage::PolicyDocumentCondition::PolicyDocumentCondition ( )
default

◆ PolicyDocumentCondition() [2/2]

google::cloud::storage::PolicyDocumentCondition::PolicyDocumentCondition ( std::vector< std::string >  elements)
inline

Member Function Documentation

◆ ContentLengthRange()

static std::vector< std::string > google::cloud::storage::PolicyDocumentCondition::ContentLengthRange ( std::int32_t  min_range,
std::int32_t  max_range 
)
inlinestatic

Creates an exact match condition, in the list form syntax.

◆ elements()

std::vector< std::string > const & google::cloud::storage::PolicyDocumentCondition::elements ( ) const
inline

◆ ExactMatch()

static std::vector< std::string > google::cloud::storage::PolicyDocumentCondition::ExactMatch ( std::string const &  field,
std::string const &  value 
)
inlinestatic

Creates an exact match condition, in the list form syntax.

◆ ExactMatchObject()

static std::vector< std::string > google::cloud::storage::PolicyDocumentCondition::ExactMatchObject ( std::string const &  field,
std::string const &  value 
)
inlinestatic

Creates an exact match condition, but in object form syntax.

◆ StartsWith()

static std::vector< std::string > google::cloud::storage::PolicyDocumentCondition::StartsWith ( std::string const &  field,
std::string const &  value 
)
inlinestatic

Creates an exact match condition, in the list form syntax.