Google Cloud Storage C++ Client  1.42.0
A C++ Client Library for Google Cloud Storage
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
 

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.

Definition at line 32 of file policy_document.h.

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

Definition at line 36 of file policy_document.h.

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.

Definition at line 74 of file policy_document.h.

◆ elements()

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

Definition at line 39 of file policy_document.h.

◆ 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.

Definition at line 47 of file policy_document.h.

◆ 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.

Definition at line 57 of file policy_document.h.

◆ 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.

Definition at line 65 of file policy_document.h.