github.com/containers/podman/v4@v4.9.4/pkg/bindings/kube/types_play_options.go (about)

     1  // Code generated by go generate; DO NOT EDIT.
     2  package kube
     3  
     4  import (
     5  	"net"
     6  	"net/url"
     7  
     8  	"github.com/containers/podman/v4/pkg/bindings/internal/util"
     9  )
    10  
    11  // Changed returns true if named field has been set
    12  func (o *PlayOptions) Changed(fieldName string) bool {
    13  	return util.Changed(o, fieldName)
    14  }
    15  
    16  // ToParams formats struct fields to be passed to API service
    17  func (o *PlayOptions) ToParams() (url.Values, error) {
    18  	return util.ToParams(o)
    19  }
    20  
    21  // WithAnnotations set field Annotations to given value
    22  func (o *PlayOptions) WithAnnotations(value map[string]string) *PlayOptions {
    23  	o.Annotations = value
    24  	return o
    25  }
    26  
    27  // GetAnnotations returns value of field Annotations
    28  func (o *PlayOptions) GetAnnotations() map[string]string {
    29  	if o.Annotations == nil {
    30  		var z map[string]string
    31  		return z
    32  	}
    33  	return o.Annotations
    34  }
    35  
    36  // WithAuthfile set field Authfile to given value
    37  func (o *PlayOptions) WithAuthfile(value string) *PlayOptions {
    38  	o.Authfile = &value
    39  	return o
    40  }
    41  
    42  // GetAuthfile returns value of field Authfile
    43  func (o *PlayOptions) GetAuthfile() string {
    44  	if o.Authfile == nil {
    45  		var z string
    46  		return z
    47  	}
    48  	return *o.Authfile
    49  }
    50  
    51  // WithCertDir set field CertDir to given value
    52  func (o *PlayOptions) WithCertDir(value string) *PlayOptions {
    53  	o.CertDir = &value
    54  	return o
    55  }
    56  
    57  // GetCertDir returns value of field CertDir
    58  func (o *PlayOptions) GetCertDir() string {
    59  	if o.CertDir == nil {
    60  		var z string
    61  		return z
    62  	}
    63  	return *o.CertDir
    64  }
    65  
    66  // WithUsername set field Username to given value
    67  func (o *PlayOptions) WithUsername(value string) *PlayOptions {
    68  	o.Username = &value
    69  	return o
    70  }
    71  
    72  // GetUsername returns value of field Username
    73  func (o *PlayOptions) GetUsername() string {
    74  	if o.Username == nil {
    75  		var z string
    76  		return z
    77  	}
    78  	return *o.Username
    79  }
    80  
    81  // WithPassword set field Password to given value
    82  func (o *PlayOptions) WithPassword(value string) *PlayOptions {
    83  	o.Password = &value
    84  	return o
    85  }
    86  
    87  // GetPassword returns value of field Password
    88  func (o *PlayOptions) GetPassword() string {
    89  	if o.Password == nil {
    90  		var z string
    91  		return z
    92  	}
    93  	return *o.Password
    94  }
    95  
    96  // WithNetwork set field Network to given value
    97  func (o *PlayOptions) WithNetwork(value []string) *PlayOptions {
    98  	o.Network = &value
    99  	return o
   100  }
   101  
   102  // GetNetwork returns value of field Network
   103  func (o *PlayOptions) GetNetwork() []string {
   104  	if o.Network == nil {
   105  		var z []string
   106  		return z
   107  	}
   108  	return *o.Network
   109  }
   110  
   111  // WithNoHosts set field NoHosts to given value
   112  func (o *PlayOptions) WithNoHosts(value bool) *PlayOptions {
   113  	o.NoHosts = &value
   114  	return o
   115  }
   116  
   117  // GetNoHosts returns value of field NoHosts
   118  func (o *PlayOptions) GetNoHosts() bool {
   119  	if o.NoHosts == nil {
   120  		var z bool
   121  		return z
   122  	}
   123  	return *o.NoHosts
   124  }
   125  
   126  // WithQuiet set field Quiet to given value
   127  func (o *PlayOptions) WithQuiet(value bool) *PlayOptions {
   128  	o.Quiet = &value
   129  	return o
   130  }
   131  
   132  // GetQuiet returns value of field Quiet
   133  func (o *PlayOptions) GetQuiet() bool {
   134  	if o.Quiet == nil {
   135  		var z bool
   136  		return z
   137  	}
   138  	return *o.Quiet
   139  }
   140  
   141  // WithSignaturePolicy set field SignaturePolicy to given value
   142  func (o *PlayOptions) WithSignaturePolicy(value string) *PlayOptions {
   143  	o.SignaturePolicy = &value
   144  	return o
   145  }
   146  
   147  // GetSignaturePolicy returns value of field SignaturePolicy
   148  func (o *PlayOptions) GetSignaturePolicy() string {
   149  	if o.SignaturePolicy == nil {
   150  		var z string
   151  		return z
   152  	}
   153  	return *o.SignaturePolicy
   154  }
   155  
   156  // WithSkipTLSVerify set field SkipTLSVerify to given value
   157  func (o *PlayOptions) WithSkipTLSVerify(value bool) *PlayOptions {
   158  	o.SkipTLSVerify = &value
   159  	return o
   160  }
   161  
   162  // GetSkipTLSVerify returns value of field SkipTLSVerify
   163  func (o *PlayOptions) GetSkipTLSVerify() bool {
   164  	if o.SkipTLSVerify == nil {
   165  		var z bool
   166  		return z
   167  	}
   168  	return *o.SkipTLSVerify
   169  }
   170  
   171  // WithSeccompProfileRoot set field SeccompProfileRoot to given value
   172  func (o *PlayOptions) WithSeccompProfileRoot(value string) *PlayOptions {
   173  	o.SeccompProfileRoot = &value
   174  	return o
   175  }
   176  
   177  // GetSeccompProfileRoot returns value of field SeccompProfileRoot
   178  func (o *PlayOptions) GetSeccompProfileRoot() string {
   179  	if o.SeccompProfileRoot == nil {
   180  		var z string
   181  		return z
   182  	}
   183  	return *o.SeccompProfileRoot
   184  }
   185  
   186  // WithStaticIPs set field StaticIPs to given value
   187  func (o *PlayOptions) WithStaticIPs(value []net.IP) *PlayOptions {
   188  	o.StaticIPs = &value
   189  	return o
   190  }
   191  
   192  // GetStaticIPs returns value of field StaticIPs
   193  func (o *PlayOptions) GetStaticIPs() []net.IP {
   194  	if o.StaticIPs == nil {
   195  		var z []net.IP
   196  		return z
   197  	}
   198  	return *o.StaticIPs
   199  }
   200  
   201  // WithStaticMACs set field StaticMACs to given value
   202  func (o *PlayOptions) WithStaticMACs(value []net.HardwareAddr) *PlayOptions {
   203  	o.StaticMACs = &value
   204  	return o
   205  }
   206  
   207  // GetStaticMACs returns value of field StaticMACs
   208  func (o *PlayOptions) GetStaticMACs() []net.HardwareAddr {
   209  	if o.StaticMACs == nil {
   210  		var z []net.HardwareAddr
   211  		return z
   212  	}
   213  	return *o.StaticMACs
   214  }
   215  
   216  // WithConfigMaps set field ConfigMaps to given value
   217  func (o *PlayOptions) WithConfigMaps(value []string) *PlayOptions {
   218  	o.ConfigMaps = &value
   219  	return o
   220  }
   221  
   222  // GetConfigMaps returns value of field ConfigMaps
   223  func (o *PlayOptions) GetConfigMaps() []string {
   224  	if o.ConfigMaps == nil {
   225  		var z []string
   226  		return z
   227  	}
   228  	return *o.ConfigMaps
   229  }
   230  
   231  // WithLogDriver set field LogDriver to given value
   232  func (o *PlayOptions) WithLogDriver(value string) *PlayOptions {
   233  	o.LogDriver = &value
   234  	return o
   235  }
   236  
   237  // GetLogDriver returns value of field LogDriver
   238  func (o *PlayOptions) GetLogDriver() string {
   239  	if o.LogDriver == nil {
   240  		var z string
   241  		return z
   242  	}
   243  	return *o.LogDriver
   244  }
   245  
   246  // WithLogOptions set field LogOptions to given value
   247  func (o *PlayOptions) WithLogOptions(value []string) *PlayOptions {
   248  	o.LogOptions = &value
   249  	return o
   250  }
   251  
   252  // GetLogOptions returns value of field LogOptions
   253  func (o *PlayOptions) GetLogOptions() []string {
   254  	if o.LogOptions == nil {
   255  		var z []string
   256  		return z
   257  	}
   258  	return *o.LogOptions
   259  }
   260  
   261  // WithReplace set field Replace to given value
   262  func (o *PlayOptions) WithReplace(value bool) *PlayOptions {
   263  	o.Replace = &value
   264  	return o
   265  }
   266  
   267  // GetReplace returns value of field Replace
   268  func (o *PlayOptions) GetReplace() bool {
   269  	if o.Replace == nil {
   270  		var z bool
   271  		return z
   272  	}
   273  	return *o.Replace
   274  }
   275  
   276  // WithStart set field Start to given value
   277  func (o *PlayOptions) WithStart(value bool) *PlayOptions {
   278  	o.Start = &value
   279  	return o
   280  }
   281  
   282  // GetStart returns value of field Start
   283  func (o *PlayOptions) GetStart() bool {
   284  	if o.Start == nil {
   285  		var z bool
   286  		return z
   287  	}
   288  	return *o.Start
   289  }
   290  
   291  // WithNoTrunc set field NoTrunc to given value
   292  func (o *PlayOptions) WithNoTrunc(value bool) *PlayOptions {
   293  	o.NoTrunc = &value
   294  	return o
   295  }
   296  
   297  // GetNoTrunc returns value of field NoTrunc
   298  func (o *PlayOptions) GetNoTrunc() bool {
   299  	if o.NoTrunc == nil {
   300  		var z bool
   301  		return z
   302  	}
   303  	return *o.NoTrunc
   304  }
   305  
   306  // WithUserns set field Userns to given value
   307  func (o *PlayOptions) WithUserns(value string) *PlayOptions {
   308  	o.Userns = &value
   309  	return o
   310  }
   311  
   312  // GetUserns returns value of field Userns
   313  func (o *PlayOptions) GetUserns() string {
   314  	if o.Userns == nil {
   315  		var z string
   316  		return z
   317  	}
   318  	return *o.Userns
   319  }
   320  
   321  // WithForce set field Force to given value
   322  func (o *PlayOptions) WithForce(value bool) *PlayOptions {
   323  	o.Force = &value
   324  	return o
   325  }
   326  
   327  // GetForce returns value of field Force
   328  func (o *PlayOptions) GetForce() bool {
   329  	if o.Force == nil {
   330  		var z bool
   331  		return z
   332  	}
   333  	return *o.Force
   334  }
   335  
   336  // WithPublishPorts set field PublishPorts to given value
   337  func (o *PlayOptions) WithPublishPorts(value []string) *PlayOptions {
   338  	o.PublishPorts = value
   339  	return o
   340  }
   341  
   342  // GetPublishPorts returns value of field PublishPorts
   343  func (o *PlayOptions) GetPublishPorts() []string {
   344  	if o.PublishPorts == nil {
   345  		var z []string
   346  		return z
   347  	}
   348  	return o.PublishPorts
   349  }
   350  
   351  // WithPublishAllPorts set field PublishAllPorts to given value
   352  func (o *PlayOptions) WithPublishAllPorts(value bool) *PlayOptions {
   353  	o.PublishAllPorts = &value
   354  	return o
   355  }
   356  
   357  // GetPublishAllPorts returns value of field PublishAllPorts
   358  func (o *PlayOptions) GetPublishAllPorts() bool {
   359  	if o.PublishAllPorts == nil {
   360  		var z bool
   361  		return z
   362  	}
   363  	return *o.PublishAllPorts
   364  }
   365  
   366  // WithWait set field Wait to given value
   367  func (o *PlayOptions) WithWait(value bool) *PlayOptions {
   368  	o.Wait = &value
   369  	return o
   370  }
   371  
   372  // GetWait returns value of field Wait
   373  func (o *PlayOptions) GetWait() bool {
   374  	if o.Wait == nil {
   375  		var z bool
   376  		return z
   377  	}
   378  	return *o.Wait
   379  }
   380  
   381  // WithServiceContainer set field ServiceContainer to given value
   382  func (o *PlayOptions) WithServiceContainer(value bool) *PlayOptions {
   383  	o.ServiceContainer = &value
   384  	return o
   385  }
   386  
   387  // GetServiceContainer returns value of field ServiceContainer
   388  func (o *PlayOptions) GetServiceContainer() bool {
   389  	if o.ServiceContainer == nil {
   390  		var z bool
   391  		return z
   392  	}
   393  	return *o.ServiceContainer
   394  }