Struct: s3.TargetGrant

import "../ibm-cos-sdk-go/service/s3"

Overview

Container for granting information.

Implemented Interfaces

s3crypto.Cipher, s3manager.ReadSeekerWriteTo, request.Validator, s3manager.WriterReadFrom

Structure Field Summary collapse

Service Operations collapse

Structure Field Details

Grantee *Grantee `type:"structure" xmlPrefix:"xsi" xmlURI:"http://www.w3.org/2001/XMLSchema-instance"`

Container for the person being granted permissions.

Permission *string `type:"string" enum:"BucketLogsPermission"`

Logging permissions assigned to the grantee for the bucket.

_ struct{} `type:"structure"`

Method Details

func (s TargetGrant) GoString() string

GoString returns the string representation.

API parameter values that are decorated as “sensitive” in the API will not be included in the string output. The member name will be present, but the value will be replaced with “sensitive”.



21954
21955
21956
// File 'service/s3/api.go', line 21954

func (s TargetGrant) GoString() string { return s.String() }

func (s *TargetGrant) SetGrantee(v *Grantee) *TargetGrant

SetGrantee sets the Grantee field's value.



21974
21975
21976
21977
// File 'service/s3/api.go', line 21974

func (s *TargetGrant) SetGrantee(v *Grantee) *TargetGrant { s.Grantee = v return s }

func (s *TargetGrant) SetPermission(v string) *TargetGrant

SetPermission sets the Permission field's value.



21980
21981
21982
21983
// File 'service/s3/api.go', line 21980

func (s *TargetGrant) SetPermission(v string) *TargetGrant { s.Permission = &v return s }

func (s TargetGrant) String() string

String returns the string representation.

API parameter values that are decorated as “sensitive” in the API will not be included in the string output. The member name will be present, but the value will be replaced with “sensitive”.



21945
21946
21947
// File 'service/s3/api.go', line 21945

func (s TargetGrant) String() string { return awsutil.Prettify(s) }

func (s *TargetGrant) Validate() error

Validate inspects the fields of the type to determine if they are valid.



21959
21960
21961
21962
21963
21964
21965
21966
21967
21968
21969
21970
21971
// File 'service/s3/api.go', line 21959

func (s *TargetGrant) Validate() error { invalidParams := request.ErrInvalidParams{Context: "TargetGrant"} if s.Grantee != nil { if err := s.Grantee.Validate(); err != nil { invalidParams.AddNested("Grantee", err.(request.ErrInvalidParams)) } } if invalidParams.Len() > 0 { return invalidParams } return nil }