github.com/containers/podman/v4@v4.9.4/pkg/bindings/manifests/types_add_options.go (about)

     1  // Code generated by go generate; DO NOT EDIT.
     2  package manifests
     3  
     4  import (
     5  	"net/url"
     6  
     7  	"github.com/containers/podman/v4/pkg/bindings/internal/util"
     8  )
     9  
    10  // Changed returns true if named field has been set
    11  func (o *AddOptions) Changed(fieldName string) bool {
    12  	return util.Changed(o, fieldName)
    13  }
    14  
    15  // ToParams formats struct fields to be passed to API service
    16  func (o *AddOptions) ToParams() (url.Values, error) {
    17  	return util.ToParams(o)
    18  }
    19  
    20  // WithAll set field All to given value
    21  func (o *AddOptions) WithAll(value bool) *AddOptions {
    22  	o.All = &value
    23  	return o
    24  }
    25  
    26  // GetAll returns value of field All
    27  func (o *AddOptions) GetAll() bool {
    28  	if o.All == nil {
    29  		var z bool
    30  		return z
    31  	}
    32  	return *o.All
    33  }
    34  
    35  // WithAnnotation set field Annotation to given value
    36  func (o *AddOptions) WithAnnotation(value map[string]string) *AddOptions {
    37  	o.Annotation = value
    38  	return o
    39  }
    40  
    41  // GetAnnotation returns value of field Annotation
    42  func (o *AddOptions) GetAnnotation() map[string]string {
    43  	if o.Annotation == nil {
    44  		var z map[string]string
    45  		return z
    46  	}
    47  	return o.Annotation
    48  }
    49  
    50  // WithArch set field Arch to given value
    51  func (o *AddOptions) WithArch(value string) *AddOptions {
    52  	o.Arch = &value
    53  	return o
    54  }
    55  
    56  // GetArch returns value of field Arch
    57  func (o *AddOptions) GetArch() string {
    58  	if o.Arch == nil {
    59  		var z string
    60  		return z
    61  	}
    62  	return *o.Arch
    63  }
    64  
    65  // WithFeatures set field Features to given value
    66  func (o *AddOptions) WithFeatures(value []string) *AddOptions {
    67  	o.Features = value
    68  	return o
    69  }
    70  
    71  // GetFeatures returns value of field Features
    72  func (o *AddOptions) GetFeatures() []string {
    73  	if o.Features == nil {
    74  		var z []string
    75  		return z
    76  	}
    77  	return o.Features
    78  }
    79  
    80  // WithImages set field Images to given value
    81  func (o *AddOptions) WithImages(value []string) *AddOptions {
    82  	o.Images = value
    83  	return o
    84  }
    85  
    86  // GetImages returns value of field Images
    87  func (o *AddOptions) GetImages() []string {
    88  	if o.Images == nil {
    89  		var z []string
    90  		return z
    91  	}
    92  	return o.Images
    93  }
    94  
    95  // WithOS set field OS to given value
    96  func (o *AddOptions) WithOS(value string) *AddOptions {
    97  	o.OS = &value
    98  	return o
    99  }
   100  
   101  // GetOS returns value of field OS
   102  func (o *AddOptions) GetOS() string {
   103  	if o.OS == nil {
   104  		var z string
   105  		return z
   106  	}
   107  	return *o.OS
   108  }
   109  
   110  // WithOSVersion set field OSVersion to given value
   111  func (o *AddOptions) WithOSVersion(value string) *AddOptions {
   112  	o.OSVersion = &value
   113  	return o
   114  }
   115  
   116  // GetOSVersion returns value of field OSVersion
   117  func (o *AddOptions) GetOSVersion() string {
   118  	if o.OSVersion == nil {
   119  		var z string
   120  		return z
   121  	}
   122  	return *o.OSVersion
   123  }
   124  
   125  // WithVariant set field Variant to given value
   126  func (o *AddOptions) WithVariant(value string) *AddOptions {
   127  	o.Variant = &value
   128  	return o
   129  }
   130  
   131  // GetVariant returns value of field Variant
   132  func (o *AddOptions) GetVariant() string {
   133  	if o.Variant == nil {
   134  		var z string
   135  		return z
   136  	}
   137  	return *o.Variant
   138  }
   139  
   140  // WithAuthfile set field Authfile to given value
   141  func (o *AddOptions) WithAuthfile(value string) *AddOptions {
   142  	o.Authfile = &value
   143  	return o
   144  }
   145  
   146  // GetAuthfile returns value of field Authfile
   147  func (o *AddOptions) GetAuthfile() string {
   148  	if o.Authfile == nil {
   149  		var z string
   150  		return z
   151  	}
   152  	return *o.Authfile
   153  }
   154  
   155  // WithPassword set field Password to given value
   156  func (o *AddOptions) WithPassword(value string) *AddOptions {
   157  	o.Password = &value
   158  	return o
   159  }
   160  
   161  // GetPassword returns value of field Password
   162  func (o *AddOptions) GetPassword() string {
   163  	if o.Password == nil {
   164  		var z string
   165  		return z
   166  	}
   167  	return *o.Password
   168  }
   169  
   170  // WithUsername set field Username to given value
   171  func (o *AddOptions) WithUsername(value string) *AddOptions {
   172  	o.Username = &value
   173  	return o
   174  }
   175  
   176  // GetUsername returns value of field Username
   177  func (o *AddOptions) GetUsername() string {
   178  	if o.Username == nil {
   179  		var z string
   180  		return z
   181  	}
   182  	return *o.Username
   183  }
   184  
   185  // WithSkipTLSVerify set field SkipTLSVerify to given value
   186  func (o *AddOptions) WithSkipTLSVerify(value bool) *AddOptions {
   187  	o.SkipTLSVerify = &value
   188  	return o
   189  }
   190  
   191  // GetSkipTLSVerify returns value of field SkipTLSVerify
   192  func (o *AddOptions) GetSkipTLSVerify() bool {
   193  	if o.SkipTLSVerify == nil {
   194  		var z bool
   195  		return z
   196  	}
   197  	return *o.SkipTLSVerify
   198  }