| 1 | package Data::Riak::Request::WithObject; | ||
| 2 | { | ||
| 3 | $Data::Riak::Request::WithObject::VERSION = '2.0'; | ||
| 4 | } | ||
| 5 | |||
| 6 | use Moose::Role; | ||
| 7 | use namespace::autoclean; | ||
| 8 | |||
| 9 | with 'Data::Riak::Request::WithBucket'; | ||
| 10 | |||
| 11 | has key => ( | ||
| 12 | is => 'ro', | ||
| 13 | isa => 'Str', | ||
| 14 | required => 1, | ||
| 15 | ); | ||
| 16 | |||
| 17 | has vector_clock => ( | ||
| 18 | is => 'ro', | ||
| 19 | isa => 'Str', | ||
| 20 | predicate => 'has_vector_clock', | ||
| 21 | ); | ||
| 22 | |||
| 23 | has if_unmodified_since => ( | ||
| 24 | is => 'ro', | ||
| 25 | predicate => 'has_if_unmodified_since', | ||
| 26 | ); | ||
| 27 | |||
| 28 | has if_match => ( | ||
| 29 | is => 'ro', | ||
| 30 | predicate => 'has_if_match', | ||
| 31 | ); | ||
| 32 | |||
| 33 | 1; | ||
| 34 | |||
| 35 | __END__ |